Help needed reading values of a csv-file into variables

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Help needed reading values of a csv-file into variables

Post by migro » Sun Dec 02, 2007 5:41 pm

Hi,

I need some help, reading Informations from a csv-file line by line into Variables.

csv-example:
1;Morgan;Peter;20.03.1983 00:00
20;Miller;John;21.03.1985 00:00
312;Smith;Suzanne;12.08.1993 00:00
....

I got 4 Variables: ID, Name; Forename and Birthday.
I tried it with the Positon- and Midstring-Command but can not get it working.

Thanks for the help
regards
migro

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Dec 02, 2007 6:13 pm

Use Separate:

Separate>line,;,fields
MessageModal>fields_1
MessageModal>fields_2
MessageModal>fields_3
etc

See:
http://www.mjtnet.com/blog/2007/07/02/m ... xcel-data/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Post by migro » Sun Dec 02, 2007 6:54 pm

Thanks a lot, it works :wink:
regards
migro

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts