Jump to content

Recommended Posts

Posted

$foo = 'one,two'
StringSplit ($foo, ',')
MsgBox (0, '$foo', '$foo[0]= ' & $foo[0] & '$foo[1] = ' & $foo[1] & '$foo[2] = ' & $foo[2])

The expected output would be: $foo[0] = 1, $foo[1] = 'one', $foo[2] = 'two'. However, it returns nothing. I have gone over the help files more then a couple times and have tried every variation I can think of. I am using an older beta, so that may be the issue. I would test this, I can not load AutoIt onto this computer. Thank you in advace for any help.

A little reading goes a long way. Post count means nothing.

Posted

$text = 'one,two'

$foo = StringSplit($text, ',')

MsgBox(0, '', $foo[1] & ' ' & $foo[2])

I am an idiot. Thank you xcal.

A little reading goes a long way. Post count means nothing.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...