Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:05:00+00:00 2026-06-15T20:05:00+00:00

Here is the code I am currently having the issue with: try { int

  • 0

Here is the code I am currently having the issue with:

        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 );
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:05:01+00:00Added an answer on June 15, 2026 at 8:05 pm

    You are defining the realopid inside the try block. it is only visible there. You should define it outside.

    int realopid = 0;
    try
    {
       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);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the code I'm currently working with: http://jsfiddle.net/gEMCm/ I'm trying to make an image
Here is the code I'm currently using: $.ajax({ success: function(){ $('.post_container').append('test <br />'); }
I'm currently using the validation code listed here in an application. I'd like to
I currently have a complete cover background image. Here is the code: #back{ /*
Here is what I am currently using for the code and it's not working
Here's a piece of code, currently driving me nuts. It's a UIView, with an
I am currently having a bit of an issue trying to parse a table
In the following code, I'm having some sort of issue getting my .yaml file
So I'm having an issue reading a text file into my program. Here is
Good Afternoon, I am having an extremely frustrating issue. I am currently trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.