View Single Post
  #1 (permalink)  
Old 05-23-2008, 01:19 AM
javanewbie83 javanewbie83 is offline
Member
 
Join Date: May 2008
Posts: 1
javanewbie83 is on a distinguished road
Passing short value as parameter
Hi every1,

i have a function that accepts short as an argument:

failedcount (short responcode){

switch(responcecode){
case 1:

case 2:

case 3:
}

}


now i have a method that calls it:

create {

failedcount(3) --- here it says can't pass an int value

}

so if i do:
short abc = 3;
and then do failedcount (abc);

Thank you..
Reply With Quote
Sponsored Links