AutoHotkey Community

It is currently May 27th, 2012, 1:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: StringSplit and ";"
PostPosted: September 16th, 2005, 4:25 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
It may be my fault, but if I try this:
Code:
bDat = C:\Eigene Dateien\exifer_08.csv

FileRead, Bild, %bDat%
loop, Parse, Bild,`;
{
    msgbox, %A_LoopField%
;    StringSplit, datum, A_LoopField,`;
;    MsgBox, %datum1%
;    exit
}
Bild =
co =


it works. If you remove the ";" and activate StringSplit, it don't.
May it be possible, that StringSplit is faulty with escaped ";"?

File content is:
c:\Bilder\2005\08_August\2005-08-01\IMG_5413.jpg;01.08.05 08:50:07;
c:\Bilder\2005\08_August\2005-08-01\IMG_5416.jpg;01.08.05 08:50:43;
...

What I want is to split the lines at the ";" but they won't. (Latest version).


Lot's 'o' thanx in advance and with a great bow


Peter


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2005, 5:10 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
Sorry, tried both versions, had no problems, changed your skript a bit, have a try with it.

Code:
Bild =c:\Bilder\2005\08_August\2005-08-01\IMG_5413.jpg;01.08.05 08:50:07;c:\Bilder\2005\08_August\2005-08-01\IMG_5416.jpg;01.08.05 08:50:43;


loop, Parse, Bild,`;
{
;    msgbox, %A_LoopField%
;    exit
}


StringSplit, datum, bild,`;
StringReplace,bild, bild, `;, `;, UseErrorLevel       ; get amount of Semikolon, and put it in variable UseErrorLevel
loop, %ErrorLevel%
   MsgBox, % datum%A_index%            ; use expressions, if you want to call an array in a Messagebox
return


Last edited by garath on September 17th, 2005, 7:28 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2005, 6:30 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
Thanx for your reply!

I'll try...

Peter


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group