tokens and paths

Edwin Gore edgore at shinra.com
Thu Jul 24 17:33:03 EDT 2003


I believe that some of the tokens are legal to use in filenames on some operating systems - for example "-" (dash) is legal in a Windows filename, and could screw yuo up.

>----- ------- Original Message ------- -----
>From: "Jim Lambert" <jiml at netrin.com>
>To: <use-revolution at lists.runrev.com>
>Sent: Thu, 24 Jul 2003 14:23:02
>
>Rev's documentation offers this tip:
>
>To place the current stack's file path in a
>variable, enter the following in
>a handler or the message box:
>  set the itemDelimiter to "/"
>  get item 1 to -2 of the effective filename of
>this stack
>
>
>Won't this one-liner do as well?
>    put token 1 to -2 of the effective filename of
>this stack
>Or are there cases where it will fail?
>
>Jim Lambert
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system
>(http://www.grisoft.com).
>Version: 6.0.502 / Virus Database: 300 - Release
>Date: 7/18/03
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolu
>tion



More information about the use-livecode mailing list