examine string


Closed Thread
Results 1 to 5 of 5

Thread: examine string

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    I can't get this to work, I fixed what I thought where some typo's but not sure how to define this, it doesn't like the quotation marks.

    Quote Originally Posted by aratti View Post
    The following simple snippet will solve your problem.


    Code:
    My_Byte = "11000011"
    
    For B0 = 0 to 7
    
    If My_Byte0.[B0] = 1 then DO SOMETHING
    Else
    DO SOMETHING ELSE
    endif
    
    Next B0

    Cheers

    Al.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    My_Byte = %11000011
    Dave
    Always wear safety glasses while programming.

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