How to load external stacks or cards into standalone

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
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

How to load external stacks or cards into standalone

Post by alex298 » Tue Jul 05, 2011 4:56 am

Hello,

-----------------------------------
RR Version: Revolution 4.0
-----------------------------------

My application has some cards that need to change often (maybe two or three times per month). I have a question:

I wish to save some stacks or cards externally on my hosting account. Therefore the external stacks or cards will be loaded or imported into the standalone application when it starts.

How can I do that?

Thanks and best regards

Alex
Alex
Nice to meet all of you.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to load external stacks or cards into standalone

Post by Klaus » Tue Jul 05, 2011 10:41 am

Hi Alex,

well, most simple:
...
go stack url "http://www.youryserver.com/folderwith_s ... k.livecode"
if the result <> empty then
## problem
answer "Error:" && the result
end if
...
If that is what you mean?

Best

Klaus

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Re: How to load external stacks or cards into standalone

Post by alex298 » Wed Jul 06, 2011 8:03 am

Hi Klaus,

Thanks! This is exactly what I am looking for:)

I played around with the codes. I noticed that the "imported" stack was a "separate" Main Stack. Is it possible to imported as a sub-Stack? This way there is no need to refer to the stack name when navigate between cards.

Best regards

Alex
Alex
Nice to meet all of you.

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: How to load external stacks or cards into standalone

Post by Klaus » Wed Jul 06, 2011 10:57 am

Hi Alex,

making it a substack does not make sense, since you will not save the stack(s), do you?

And you can still:
...
set the defaultstack to "the one loaded from the net"
## Name of stack NOT the complete URL!
go cd "nice card"
...


Best

Klaus

alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Re: How to load external stacks or cards into standalone

Post by alex298 » Wed Jul 06, 2011 3:07 pm

Hi Klaus,

## making it a substack does not make sense, since you will not save the stack(s), do you?

You are absolutely right. I am just curious to know if the loaded stack can be a substack:)

Thanks and best regards
Alex
Nice to meet all of you.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”