hi, i'm really lost as to what happening here, x has the correct string value but myArray = Split(x," ") doesn't work...?
this is what i have:
<%
dim myArray
dim Sftp, item
dim s,rx,cm,t,x,i
set Sftp = Server.CreateObject("WeOnlyDo.wodSFTPCom.1") ' registerd the dll in system32 folder WindowServer 2003
Sftp.LicenseKey = "xxxxxxxx"
Sftp.Timeout = 60
Sftp.Login = "xxxx"
Sftp.Password = "xxxxxxxxxxxxxxxx"
Sftp.HostName = "ftp.xxxxxx.com"
Sftp.Blocking = 1
Sftp.Connect
Sftp.ListNames "/ftp/ 'parsing file names from remote Unix server
x = Trim(Sftp.ListItem) ' get file names and set as a string to x
Sftp.Disconnect
Response.Flush
set Sftp = Nothing
response.write x ' give correct value
myArray = Split(x," ")
for i = 4 to Ubound(myArray)
Response.write myArray(i) & "<br>"
next
%>
this is what i have:
<%
dim myArray
dim Sftp, item
dim s,rx,cm,t,x,i
set Sftp = Server.CreateObject("WeOnlyDo.wodSFTPCom.1") ' registerd the dll in system32 folder WindowServer 2003
Sftp.LicenseKey = "xxxxxxxx"
Sftp.Timeout = 60
Sftp.Login = "xxxx"
Sftp.Password = "xxxxxxxxxxxxxxxx"
Sftp.HostName = "ftp.xxxxxx.com"
Sftp.Blocking = 1
Sftp.Connect
Sftp.ListNames "/ftp/ 'parsing file names from remote Unix server
x = Trim(Sftp.ListItem) ' get file names and set as a string to x
Sftp.Disconnect
Response.Flush
set Sftp = Nothing
response.write x ' give correct value
myArray = Split(x," ")
for i = 4 to Ubound(myArray)
Response.write myArray(i) & "<br>"
next
%>