Sign in to follow this  
Followers 0
jvanegmond

Seperating data

3 posts in this topic

#1 ·  Posted (edited)

I think it's been done before but i have no clue what to search for..

I have a file containing this:

Data1,Data2,Data34,Cookie,Whatever,

And i'd like to have a message box prompt me first time containing Data1, next time i'd like it to have Data2 then another message box containing Data34 etcetera

As in:

Messagebox 1

Title

Data1

Ok

Messagebox 2

Title

Data2

Ok

Edited by Manadar

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I think it's been done before but i have no clue what to search for..

I have a file containing this:

Data1,Data2,Data34,Cookie,Whatever,

And i'd like to have a message box prompt me first time containing Data1, next time i'd like it to have Data2 then another message box containing Data34 etcetera

$split = StringSplit($var, ",")
For $i = 1 To $split[0]
    MsgBox(0, "String", $split[$i])
Next

Think that would work, though you need to change it for whatever u want to do. :)

Edit:

Damn Larry bet me to it. ^^

Edited by FreeFry

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0