Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identifier Expected

Status
Not open for further replies.

petperson

Programmer
Oct 2, 2002
106
US
Hi,

Still learning C#...I am trying to pass 2 arrays to a report menu. I keep getting 'Identifier Expected' error. MSDN says its to replace the keyword with a user specified identifier. I'm not sure what its looking for. It's giving me the error at the reportMenu method. Here's part of my code:

case 5:
reportMenu(cArray, tArray);
break;
}// end of switch statments
}//end of main menu while Loop
}//end of main method


public static void reportMenu(cArray, tArray)

thanks
 
you need to declare the types for cArray and tArray in your reportMenu method. Right now, there are no types and the compiler doesn't know what to do.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top