PDA

View Full Version : Do you need to download pages/files from internet?



ErosOlmi
16-10-2006, 10:45
This thinBasic script will download default thinBasic web site page locally.
The same can be used for whatever file from internet. Just change the url.


uses "INet"

dim ret as number

ret = INET_URLDownLoad("http://www.thinbasic.com", APP_SOURCEPATH + "Home.html")

IF ret <> %TRUE THEN
msgbox(0, "Error: " + ret)
END IF

catventure
17-10-2006, 17:27
Hi Eros,

That's a neat and simple little program code.
I was thinking of including a "Check for program update" button facility for my adventure editor so if I had something like "tab_alpha_15.zip" on the website page your code (modified slightly) could check whether this was in advance or the same as the currently downloaded version... If so, it would ask the user if they would like to download the later version.

Cheers,
catventure.

PS. I noticed in latest preview that dialog windows now have thinbasic icon instead of windows logo. Good.
Does this mean we can now attach our own icons to "thinbasic.exe" when distributing a packaged version and that icon would be used by the dialog?

ErosOlmi
17-10-2006, 22:34
Continue here: http://community.thinbasic.com/index.php?topic=411.0