On 7/5/06 11:05 AM, "Robert Sneidar" <[EMAIL PROTECTED]> wrote:
> Of course I  
> must now correct you to some degree, because properly I should first
> save the old delimiter, and afterwards restore it.

If you call a function, there is no need to remember the old delim

on processString
   put item 1 of "cat,dog,mouse,cow" into animal
   put lastItem("first/second/third/fourth") into ending
   put item 2 of "cat,dog,mouse,cow" after animal
   put animal & cr & ending into msg
end processString

function lastItem str
   set the itemDel to "/"
--this applies only to this scope
--which means it is 'forgotten' when this handler finishes
   return item -1 of str
end lastItem

Jim Ault
Las Vegas


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to