View comments | RSS feed

itemDelimiter

Usage

the itemDelimiter

Description

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.

Example

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

See also

Player


Comments


Charles Parcell said on Apr 7, 2004 at 9:05 AM :
It should be noted that the new syntax is:

_player.itemDelimiter

 

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