Quote:PS. Jim does this forum have a "Code" function?
This seems to work:
see yab | yet another Basic for HAIKU / Help Documents / MyCode
Code:
local version$,selector
version$ = system$("curl --connect-timeout 1 " + UpdateFile$)
if left$(version$,1)<>"v" then
alert "Unable to connect to update server!", "OK", "warning"
return
endif
if version$ = AppVersion$ then
alert "You have the latest version of this program.", "OK", "info"
return
else
selector = alert "A newer version of this program is available. Take a look?", "Yes", "No", "", "info"
if selector = 1 launch "http://mysite.mweb.co.za/residents/clasqm/haiku/yab-apps/index.html"
endif
end sub