spin question - pulling substrings out of a string
russ christensen
Posts: 84
Hi guys, i'm sending commands from my vb program to the robot, and so far everythig is working great. but i'm trying to kill two birds with one stone. when i click on a particular button, i want to send the value of a control in this form "spd" + (bar.value*2).tostring This works great, but i need a way in the spin to recognize the prefix "spd" and pull out what the speed is being set to. Is there a way to do this? Does anybody have any example code? i'm going to assume its as easy as just looking at the correct bytes, but i'm not sure exactly how to do this in spin. Thanks in advance.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Russ