O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading and saving external data

In many applications you will want to keep track of changes that the user has made. There are several ways to do that with LiveCode, including querying of a URL, reading and writing to a text file, and saving data inside a stack.

Querying a URL

Quite often web-based applications will load and save data from server side scripts. That can be done with LiveCode apps too. Here's an example, where we want to know what the closing price was for Google yesterday:

put url "http://quote.yahoo.com/d/quotes.csv?s=GOOG&f=p"

At the moment that line was tested, 609.46 appeared in the Message Box:

Querying a URL

Who knows what you'll find when you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required