02-11-2011 08:10 PM
Hi Guys,
I need to change LocalPath parameter in NI_FTPFiles, but I don't know how to write the correct expression.
I can set it like:
RunState.Sequence.Main["FTP Files"].FilesToFTP.ArrayElementPrototype.LocalPath = "c:\\myfolder\\newfile.txt"
But it is wrong.
Any one can help me? Thanks very much!
02-12-2011 02:34 PM
Try using Step.FilesToFTP[0].LocalPath = "c:\\myfolder\\newfile.txt". Instead of 0 you could use a numeric variable.
It's the proper way to use it in that step anyway.
BTW- The reason yours won't work is because FilesToFTP is an array and has to be indexed.
02-14-2011 01:10 AM
Hi ~jiggawax~,
You are absolutely correct!
I take the index into parameters and works fine now.
Thanks very much for you help!