Local variale use in script step
am 21.11.2007 06:53:26 von trashadd5
I have set a local variable: $Filename is thename.
I want to use it in other script steps, such as "Save a Copy", as below,
where the path name in that script step is:
file:/C:/Documents and Settings//$Filename.51_backup.fp7
However, the filename it saves is literally:
$Filename.51_backup.fp7, rather than
thename.51_backup.fp7
That is, it does not substitute the variable contents.
What am I doing wrong?
Re: Local variale use in script step
am 21.11.2007 06:59:49 von Grip
On Nov 20, 10:53 pm, "David Robins, MD" wrote:
> I have set a local variable: $Filename is thename.
>
> I want to use it in other script steps, such as "Save a Copy", as below,
> where the path name in that script step is:
>
> file:/C:/Documents and Settings//$Filename.51_backup.fp7
>
> However, the filename it saves is literally:
> $Filename.51_backup.fp7, rather than
> thename.51_backup.fp7
>
> That is, it does not substitute the variable contents.
>
> What am I doing wrong?
FileMaker won't accept a combination of a variable and 'constant'
values as a filepath. You have to build the entire file path into a
single variable and use that.
I.e.
Set Variable[$filepath; "file:/C:/Documents and Settings//" &
$Filename & ".51_backup.fp7"]
then Save As[$filepath]