checking for new versions of your app
#2
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
Reply


Messages In This Thread
checking for new versions of your app - by clasqm - 07-05-2015, 06:40 PM
RE: checking for new versions of your app - by bbjimmy - 07-05-2015, 10:49 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)
Free Web Hosting