PDA

View Full Version : Two Part Question


abnrange
01-31-2008, 01:13 PM
Part one:

Is it possible to download from HTTP multiple files at once? So let say I have a folder with 10 ZIP files. Can I just download all files with out calling out each file name?

Part Two:

I have a application that runs in three different locations and one central database. Each location has a seperate LAN IP such as 192.1.xx.xx, 192.2.xx.xx and 192.3.xx.xx. Is it possible to do if IP Address is 192.1 then set combobox1 visible and set combobox2 not visible - If 192.2 set combobox3 visible and combobox1 not visible etc..?

Thanks

RizlaUK
01-31-2008, 02:36 PM
Part 1, useing http functions you can set a for loop to download all the files, although you might be better off using the ftp functions, there is more than one way to achive your goal

Part 2, you can get the local IP on a system by useing "IPADDY=System.GetLANInfo().IP" and from there you can filter the IP's

eg:

IPADDY=System.GetLANInfo().IP
if IPADDY == "192.168.0.1" then
ComboBox.SetVisible("Object1", true);
elseif IPADDY == "192.168.0.2" then
ComboBox.SetVisible("Object2", true);
elseif IPADDY == "192.168.0.3" then
ComboBox.SetVisible("Object3", true);
elseif IPADDY == "192.168.0.4" then
ComboBox.SetVisible("Object4", true);
end

abnrange
01-31-2008, 04:20 PM
Just what I was looking for!

Thanks for your help!