I've brought this up before, sorry, I just can't seem to work through it.
I get an error stating:
On click, line 32: attempt to index feild '?'(a number value)
the red below shows the line. Help please.
-- step 1: connect anonymously to your web site.com
FTP.Connect("www.diginetx.com", "logon", "password", "", true);
err = Application.GetLastError();
if err ~= FTP.OK then
Dialog.Message("Error", _tblErrorMessages[err]);
end
--step 2: change to the directory where the file you want is located
FTP.ChangeDir("websites/diginetx.com/docs/folder1/folder2");
err = Application.GetLastError();
if err ~= FTP.OK then
Dialog.Message("Error", _tblErrorMessages[err]);
end
ftp_file_result = FTP.ListFiles();
--stop the listbox from updating
ListBox.SetUpdate("DirList", false);
-- empty the listbox
ListBox.DeleteItem("DirList",LB_ALLITEMS);
tbFiles = FTP.ListFiles();
-- add each item to the listbox in this format:
-- <name>
for numIndex, tblInfo in tbFiles do
--if String.SplitPath(tbFiles.Name).Extension == ".zip" then
if String.SplitPath(tbFiles[numIndex]["Name"]).Extension == ".zip" then
ListBox.AddItem("DirList", tblInfo.Name .. "");
end
--allow the listbox to update
ListBox.SetUpdate("DirList", true);
FTP.Disconnect ();
end

Com'on ya old salts! Where is this thing jacked up?

