小编Mig*_*igs的帖子

当前上下文错误c#中不存在名称"string"

以下是我目前遇到的问题代码:

        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 );
Run Code Online (Sandbox Code Playgroud)

c#

3
推荐指数
1
解决办法
1798
查看次数

标签 统计

c# ×1