Sysax Product Forums / Sysax FTP Automation / Bugs and Feature Requests / Can filewriteline use .name as string?
Posted:  27 Mar 2010 16:37
Using script commands:
Code:

10  ftpdownload file, $remote_item.name;
11  if ftpresult eq success begin
12    filewriteline $remote_item.name;
13  end

I can't run the script, the error is:
Script Engine: Parse Error on line 12 - Incorrect number of parameters
ERROR: FTP script could not be parsed. 1 parse error(s)

If I use a quoted string "dummy.txt" or string variable instead of $remote_item.name on line 12, then there is no error.
Code:

setvar ~remote_name, $remote_item.name;
filewriteline ~remote_name;

I suggest that the value of .name should be useful anywhere that a string is specified.
Posted:  06 Apr 2010 10:08
Thank you for reporting this issue. Our developers have been notified of this issue and a fix for this should be made available soon.
 

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0