I have an app and am trying to set up a basic way of users obtaining the latest version. Its a simple concept but will work for my purposes. I'm having some issues though and am wondering if someone can head me in the right direction. I have a text field (version) and its contents are the apps version number. I have a button that will look to see if the URL of the latest version matches the apps version as listed in the text field. If it does not match, then an update page URL will launch. My problem is that the URL status is not showing in the second field I have called "update". I'm new to this LiveCode gig and any help would be appreciated. Thanks in advance.
Code: Select all
on mouseUp
put URLstatus("http://www.mydomain.com/" & field "version" & ".zip") into field "update"
if field "update" = "not found" then
Launch URL ("http:www.mydomain.com/update.html")
end mouseUp