After the responses, did you see where you goofed, Lee?

In the Set Variable you defined the name as "$data" and in the
Export Records you called for "$data.xls." They are not the same,
so FMP used the new name you told it to use, not the variable
you previously defined.

j.


On Aug 21, 2008, at 1:29 AM, Lee wrote:

I have set a variable script that refuses to work if anyone has an idea where the scripting is wrong then I'd appreciate any input.

Set Variable ($data; (Value:Get(FileName)&"_"&main::name)
Exports Records (No dialog;"$data.xls", Unicode(UTF-16)

'main::name' field is just a text field with a name in it.


The exported file just reads $data.xls rather than for example "Main_John" which is what the 'name' (text) field reads on the screen .

any help appreciated. I have done other variable scripts when saving files but this one just seems to be wrong somewhere.

Lee  Mills

--



--
Jonathan Fletcher
[EMAIL PROTECTED]
Project Foreman
NewMedia Construction Co.

Reply via email to