Tsukihime Posted May 11, 2011 Share Posted May 11, 2011 (edited) I have a string "hello" Is there a way to reference specific characters in the string by index? In python I could just use subscripts. In java I would just use charAt. EDIT: I could use StringMid($myString, $index, 1), but that seems tedious whenever I want to get a character from a string. Edited May 11, 2011 by Tsukihime Link to comment Share on other sites More sharing options...
JohnOne Posted May 11, 2011 Share Posted May 11, 2011 Split your string into an array, and use an array index to get your character. I dont see the tediousness in StringMid though. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
enaiman Posted May 11, 2011 Share Posted May 11, 2011 And in AutoIt you could use StringInStr - it returns the character's position. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) 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