ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
Hello everyone,

I 'm a new user (i found this programme this morning) and i have a simple question :
Is it possible to group 2 string variables ?
For example :
Code: Select all$Value1="hello" $Value2 = "everyone" # Note from the ScriptFTP support: # The following line is not correct. See the next forum message. $ValueResult = $Value1 & $Value2
I search to obtain in result (in this exemple) : "helloeveryone"

If you have an idea ....

Best regards
Last edited by peuchere83 on 14 May 2010, 06:05, edited 1 time in total.
Hello,

Yes, it is possible. You have to use a dot (not the &)
Code: Select all$Value1="hello" $Value2 = "everyone" $ValueResult = $Value1 . $Value2 PRINT($value1) PRINT($value2) PRINT($valueresult)
The output of this script is:
hello
everyone
helloeveryone
You can find further information and examples in this help topic:

http://www.scriptftp.com/reference.php?go=topic530 (scroll down to the Text value operators section)
Thank your for this response.

And sorry : i will search in the documentation before ask you.

Thanks
No problem :) Feel free to ask. I hope every questions were as easy.