libURL will not accept data in a variable

Richard Gaskin ambassador at fourthworld.com
Wed Jan 15 11:28:00 EST 2003


Roger.E.Eller at sealedair.com wrote:

>>> -- This one does NOT work
>>> put "ftp://"&myServerUser&":"&myServerPass&"@"
>>> &myServerIP&myServerPath&theFileName into tUrl
>>> 
>>> -- This one works
>>> put "ftp://"&myServerUser&":"&myServerPass&"@"&"172.000.000.000"
>>> &myServerPath&theFileName into tUrl
> 
> 
>> It may be that the value of the var myServerIP is not correct.  You can
>> double-check that with "put myServerIP" in a new line before the line
> that
>> breaks.
>> 
>> I use vars for all FTP params in WebMerge, so I know its possible.
>> --
>> Richard Gaskin
> 
> I have confirmed that the IP in the variable is the correct one.
> This URL is used in the following command.
> 
> libUrlFtpUpload URL tData, tUrl
> 
> Here is the error that was returned.
> 
> There was a Script Compile Error at 9:22:26 AM
> Error description:  Expression: double binary operator
> Object: button id 1017 of card id 1002 of stack "Transfer1" of stack
> "C:/GeoFTP.rev"
> --------------------
> put "ftp://"&myServerUser&":"&myServerPass&"@"
> &myServerIP&myServerIP&myServerPath&theFileName into tUrl
> --------------------
> Value: &

As a compilation error rather than a script error, we can rule out a bad
value in a var or other logic issue and focus on the syntax alone.

Is that really two lines there?  I had thought that was a text-wrap from the
email formatting.  If it's two lines, just make it one line and you should
be fine.  That would explain why it's erroring on "&".

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list