get livecode file from server parse values

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

get livecode file from server parse values

Post by reelstuff » Mon Apr 01, 2013 2:40 am

I am curious if it is possible to get a livecode file and parse the text of the data in that livecode file.

Code: Select all

   get url "http://someserver.somefile.livecode"
I have in the past with previous, much older versions used the get url feature to pull data and then save it as a binary inside the application, but never really tried it with a livecode file, I guess its possible to save the file in a folder on disk, but I was interested to know if there is any way to parse it in memory or in a substack?

Thanks for any suggestions or thoughts on this.

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: get livecode file from server parse values

Post by shaosean » Mon Apr 01, 2013 5:44 am

You can open a stack served from a web server and it will be just like opening it from a local drive (just a little slower) and then you can access all the data and controls as you normally would.. Look at the go command for all the optionally command features..

Code: Select all

go stack URL "http://www.example.org/data/mystack.rev" in a new window

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Re: get livecode file from server parse values

Post by reelstuff » Mon Apr 01, 2013 12:58 pm

Awesome, yes, for some reason my dictionary would not pull up anything (like it was hung up or something)

but on a fresh load from the disk, it did,
The mode is one of the following:
topLevel: editable window
palette: palette
modal: modal dialog box
modeless: modeless dialog box
sheet: sheet dialog box (appears in defaultStack)
drawer: drawer (appears in defaultStack, centered at left side if there's room)
Thanks, ) :P

Post Reply