I know I saw this topic somewhere in the forum about a week or two ago but I can't seem to find it now. What I am doing is receiving a number (10048757 5A) and using an if-then statement to execute a command. The first number (10048757) tells VB what device it is and the second number (5A) tells VB that status of the device. Right now I am using an if then:
If string= 10048757 5A then
deviceA="on"
endif
This works good but there are some devices that have analog values. The one previously mentioned is digital (either 55 or 5A). So, what I am trying to do is ignore the larger number and do something like this:
text1.text=5A
but the string variable is 10048757 5A. How can I ignore the larger number and only display the 5A or any other number?
Thanks,
Chris
Bookmarks