Re: libURL will not accept data in a variable
Sarah, I wish that was the answer, but my command is not split over multiple lines (the list server did that). I also have tried the put quote method. My next approach/attempt will be as follows: 1 - A button script will use my variables (including myServerIP) and will create Transcript code via concatenation into a text field. The result of this will be Transcript commands which contains an actual IP address. 2 - I will use the command > set the script of someOtherButton to fld "magicScript". 3 - I will send mouseUp to someOtherButton. This should work around the glitch I have been experiencing since I won't be trying to execute concatenated commands on the fly. The commands will be as if they were hard-coded. What do you think? This should work - I think. Roger Eller [EMAIL PROTECTED] --- on 1/15/2003 at 5:26:45 PM, Sarah <[EMAIL PROTECTED]> wrote: > I haven't done any FTP stuff myself, but I expect that the command > being split over 2 lines is the problem. If not, perhaps it would work > if you sent the IP address enclosed in quotes e.g. > > put quote & myServerIP & quote into myServerIP > -- then use your command. > > Don't forget that if you want to split a single line of script over 2 > lines, you can use a backslash > answer "Here is a long " & \ > "piece of text." > > Cheers, > Sarah ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: libURL will not accept data in a variable
I haven't done any FTP stuff myself, but I expect that the command being split over 2 lines is the problem. If not, perhaps it would work if you sent the IP address enclosed in quotes e.g. put quote & myServerIP & quote into myServerIP -- then use your command. Don't forget that if you want to split a single line of script over 2 lines, you can use a backslash answer "Here is a long " & \ "piece of text." Cheers, Sarah On Thursday, January 16, 2003, at 01:51 am, [EMAIL PROTECTED] wrote: put "ftp://"&myServerUser&":"&myServerPass&"@"; &myServerIP&myServerIP&myServerPath&theFileName into tUrl ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: libURL will not accept data in a variable
Richard, 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: & Roger Eller - >> -- 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: libURL will not accept data in a variable
[EMAIL PROTECTED] wrote: > This one is very strange and inconsistent. I am simply using a variable to > contain each piece of my ftp URL. I have replaced each variable with quoted > text (one at a time) to determine which variable is causing me grief. It it > the variable containing my IP address. So I tried using a field instead. > Still no go. I have tried getting the IP from the field character by > character and putting it into a new variable. The result is always the > same. Unless my IP address is quoted text, nothing works. Has anyone seen > this behavior before? Do you have a solution or an idea of something to > try? Thanks. > > -- put libURLVersion() returns "1.0.8r4" > global myServerIP,myServerUser,myServerPass,myServerPath,theFileName > put fld 1 into myServerIP > put fld 2 into myServerUser > put fld etc. > > -- 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 Fourth World Media Corporation Developer of WebMerge 2.1: Publish any database on any site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
libURL will not accept data in a variable
This one is very strange and inconsistent. I am simply using a variable to contain each piece of my ftp URL. I have replaced each variable with quoted text (one at a time) to determine which variable is causing me grief. It it the variable containing my IP address. So I tried using a field instead. Still no go. I have tried getting the IP from the field character by character and putting it into a new variable. The result is always the same. Unless my IP address is quoted text, nothing works. Has anyone seen this behavior before? Do you have a solution or an idea of something to try? Thanks. -- put libURLVersion() returns "1.0.8r4" global myServerIP,myServerUser,myServerPass,myServerPath,theFileName put fld 1 into myServerIP put fld 2 into myServerUser put fld etc. -- 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 Kind regards, Roger Eller [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution