condition not working


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: condition not working

    Hi,
    It seems to me like you are receiving ASCII so if you want to check for the 'digit' 3 you should compare x to 51 which is the ASCII code for '3'

    /Henrik.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default Re: condition not working

    Try this:

    Change "rec Var Byte[4]" to "rec Var Byte[5]
    Last edited by sayzer; - 2nd April 2012 at 10:06. Reason: typo
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Jun 2006
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: condition not working

    right that does it.simplest of things to forget....

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts