Jump to content

Seperating data


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...