Split string
Split string
- Subject: Split string
- From: Götz Verdieck <email@hidden>
- Date: Fri, 12 Mar 2004 11:46:20 +0100
Hallo,
please have a look at the following script:
set spg_yvsty to "300 1000"
class of spg_yvsty -- output: string
set wd to word 1 of spg_yvsty -- output: 300
count words in spg_yvsty -- output: 2
set spg_erdkabel to "400/500 1000"
class of spg_erdkabel -- output: string
set wd2 to word 1 of spg_erdkabel -- output: 300 but I would like to see :
300/500
count words in spg_erdkabel -- output: 3
I don9t understand why / is a so special character in a string ?
Can someone help me to get the result 300/500 from spg_erdkabel.
How can I set the word separater only to ' ' ?
Any tip is welcome.
Gvtz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.