Cant get item x in LIST
Cant get item x in LIST
- Subject: Cant get item x in LIST
- From: cedrik <email@hidden>
- Date: Sat, 19 Mar 2005 17:11:11 +0100
Title: Cant get item x in LIST
if (form_item = "Height") then set Height to convert2list(item_value, ",")
if (form_item = "Width") then set Width to convert2list(item_value, ",")
...where form_item comes from different sources while a REPEAT is running and contains values such as:
350,359.10,368.21,377.32,386.43,395.54,404.65,413.76,422.87,431.98,441.09
Gets split by delimiter through:
on convert2list(this_string, this_delimiter)
set AppleScript's text item delimiters to this_delimiter
set the item_list to every text item of this_string
set AppleScript's text item delimiters to ""
return item_list
end convert2list
Now the stange thing ist – i can easily call:
item x of Height
but not
item x of Width
I can call (count Width) with correct result though, so the “Width” must have been converted to a LIST.
Any explanation to this ?
Thanks for any hints !
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden