这是我目前遇到问题的代码:
try
{
int realopid = Convert.ToInt16(operatorid);
}
catch (OverflowException)
{
//Create Message Box
MessageBox.Show("Please Scan Valid Operator ID", "Operator ID");
operatorid = Microsoft.VisualBasic.Interaction.InputBox("Scan Operator ID", "Operator ID");
}
string res = lookupName( realopid );