marscom Posted January 6, 2008 Share Posted January 6, 2008 Okay, problem I have been having and can't seem to fix. Im scripting in autoit and I have a string that looks like this $string1= 10010100 Basically I need to reverse the string and later do other things with it, the easiest way to do this would to be able to get the value at a specified position in the string eg get it so that $value3 would equal 0 and $value6 would equal 1 Just as Im typing this it occured to me, would it be better to use an array with 8 single digit values and call the specified value from the array E.g $array[0] = 1 $array[1] = 0 $position2 = $array[1] Suggestions? Thanks very much in advance for any help. Link to comment Share on other sites More sharing options...
The Ape Posted January 6, 2008 Share Posted January 6, 2008 (edited) StringMid Edit: By the way... welcome to the forum. Edited January 6, 2008 by The Ape FixJaw.comTriad-Art.com Link to comment Share on other sites More sharing options...
marscom Posted January 6, 2008 Author Share Posted January 6, 2008 StringMidEdit: By the way... welcome to the forum.Your a star, thanks very much! And thanks for the warm welcome aswell ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now