"Back" button

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
tom.yatesGAd213
Posts: 7
Joined: Fri Jan 06, 2012 10:51 am

"Back" button

Post by tom.yatesGAd213 »

Hi, I am wanting to create a button that will work both on iOS and Android. I simply want it to go to the last card that was viewed. I was wondering whether I have to make something to store the card ID in, in the stack which the button then uses to find the card to go to.
Sorry if thats complicated :)
Thanks!
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: "Back" button

Post by dunbarx »

Does "go recent" not work?

This works both from within a stack and between stacks.

You can certainly load a custom property with pathNames, updated with openCard(s), but I do not think it necessary.

Craig Newman
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: "Back" button

Post by jacque »

Also there is "go back".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: "Back" button

Post by jmburnod »

As Craig said:
You can certainly load a custom property with pathNames, updated with openCard(s), but I do not think it necessary
Yes. And you can know the name of the recent cd like this:

Code: Select all

put the name of the recent cd into tNameRecentCD
Best regards
Jean-Marc
https://alternatic.ch
Post Reply