the itemDelimiter
Player property; indicates the special character used to separate items.
You can use the itemDelimiter to parse filenames by setting itemDelimiter to a backslash (\) in Windows or a colon (:) on the Macintosh. Restore the itemDelimiter character to a comma (,) for normal operation.
This function can be tested and set.
The following handler finds the last component in a Macintosh pathname. The handler first records the current delimiter and then changes the delimiter to a colon (:). When a colon is the delimiter, Lingo can use the last item of to determine the last item in the chunk that makes up a Macintosh pathname. Before exiting, the delimiter is reset to its original value.
on getLastComponent pathName save = the itemDelimiter the itemDelimiter = ":" f = the last item of pathName the itemDelimiter = save return f end
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/director/mx2004/release_en/09_pr310.htm
Comments
Charles Parcell said on Apr 7, 2004 at 9:05 AM :