Page 1 of 1
Number of visited card
Posted: Thu Jun 09, 2016 1:10 pm
by shalu
Hi ALL
I have some cards in Stack , I randomly go to each card, How I get the name or number of last visited card

Re: Number of visited card
Posted: Thu Jun 09, 2016 1:40 pm
by dunbarx
Hi.
You have to understand that a handler in the stack script can "see" what is happening as you navigate to certain cards. This involves an understanding of the nature of the message hierarchy.
In the stack script:
Code: Select all
on openCard
put the number of this card
end openCard/code]
This loads the message box, but it is up to you how you want to report the current card. You might display card names just as well, if they have them.
Craig
Re: Number of visited card
Posted: Thu Jun 09, 2016 1:44 pm
by Klaus
Hi Shalu,
what Craig said, but also check "recent" in the dictionary!
Best
Klaus
Re: Number of visited card
Posted: Thu Jun 09, 2016 1:51 pm
by dunbarx
Hi.
What Klaus said, but note that "recent" as well would have to be placed in a handler in the stack script, for the same reasons. And that is most important; what I want you to learn solidly.
Craig
Re: Number of visited card
Posted: Thu Jun 09, 2016 1:59 pm
by Klaus
Hi Craig,
dunbarx wrote:...but note that "recent" as well would have to be placed in a handler in the stack script...

"go recent cd" in a button works fine! What am I missing?
Best
Klaus
Re: Number of visited card
Posted: Thu Jun 09, 2016 2:19 pm
by dunbarx
Klaus, baby.
The stack would have to have that button on each card. The user would have to click after each navigation to see which card was in front. Perhaps it could be placed in a group with background behavior set to true? So that any new cards created would contain that fabulous functionality? Maybe the user could switch to assembly language?
Craig
Re: Number of visited card
Posted: Thu Jun 09, 2016 2:38 pm
by Klaus
Hi Craig,
dunbarx wrote:Klaus, baby.
dunbarx wrote:The stack would have to have that button on each card. The user would have to click after each navigation to see which card was in front. Perhaps it could be placed in a group with background behavior set to true? So that any new cards created would contain that fabulous functionality?
Maybe,but we do not know any details yet...
dunbarx wrote:Maybe the user could switch to assembly language?

I'm sure, that Shalu would not be amused!
Best
Klaus
Re: Number of visited card
Posted: Thu Jun 09, 2016 3:15 pm
by FourthWorld
The recentCards will return a list of the long IDs of recently-visited cards.
Re: Number of visited card
Posted: Thu Jun 09, 2016 4:28 pm
by dunbarx