Failure using Strings in Javascript

Advertisement

coderanger
Joined:
Posts:
2

Failure using Strings in Javascript

When using Javascript, if you pass a JS string into PutFiles it fails with "Type error":

This works...
var transferResult = session.PutFiles("D:\\test.xml", "/", false, transferOptions);

This does not...
var s = new String("D:\\test.xml");
var r = new String("/");
var transferResult = session.PutFiles(s, r, false, transferOptions);

Any idea how to fix this??

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum