VB error

Discussion in 'Programmer's Corner' started by ildo, Jun 29, 2009.

  1. ildo

    Thread Starter New Member

    Jun 29, 2009
    Hi guys:

    I am a newbie here.
    I was searching for a solution online and was led here.
    I have a VB program, reading serial port.
    but sometimes, I will get the same error: could not find any recognizable digits.
    my question is how can i ignore this and keep my program running not shut down.

  2. beenthere

    Retired Moderator

    Apr 20, 2004
    Welcome to AAC.

    We really do prefer you to start a question in its own thread. Hijacking an existing thread as you did leads to confusion. I won't provide the link to the older hijacked thread, as it had no relationship to your question.

    Use a variable as a flag. If you get an input, set it to 0 and process the input. If garbage, leave it to 1 and jump to some other section.

    That may be vague, but so is the description. Are you insuring the port setting agrees with the inputting device? That would be baud rate, number is data bits, start/stop bits, and parity. Problems here translate to garbage in.

    There is also the issue of the data being sent, and so on....
    Last edited: Jun 29, 2009