2 quick questions

Mark Smith Mark_Smith at cpe.umanitoba.ca
Wed Jun 16 16:17:56 EDT 2010

Hi Peter, no doubt the day will come. Thanks for the tip (I'm filing these away in a word document. Mark Schonewille will undoubtedly need something to base his FAQ on!)

-- M

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Peter Brigham MD
Sent: Wednesday, June 16, 2010 8:27 AM
To: How to use Revolution
Subject: Re: 2 quick questions

A useful nugget -- if you need to get the current card of a stack that  
is not the frontmost stack, use the undocumented term  
"currentcard" (note lack of space character) -- as in:
put the currentcard of stack "myStack" into cc
which gets you something like:
card id 1002

"Currentcard" is equivalent to "this card" but works with any open  
stack, returning the id of the card that is currently showing in that  
stack. In your case this is unnecessary, as you are apparently needing  
to deal only with the one stack, so "this card" will do fine.

-- Peter

Peter M. Brigham
pmbrig at gmail.com

On Jun 15, 2010, at 10:21 PM, Mark Smith wrote:

> HI Mark, I was all excited until I realized i didn't know where to  
> put it. Here is what I want to do: I want to put the number of the  
> current card into a field or label on the card so I know where I am  
> in the stack. Where would I put this line
> put the number of this cd into field cardnumberfield
> thanks
> -- M
> Mark Smith
>> Mark,
>> put the number of this  cd
>> put the number of the current cd
>> put the number of this cd of stack "Foo"
>> put the number of the current cd of stack "Foo"
>> I think there is a FAQ on the RunRev homepage but probably it isn't
>> what you're looking for. I'd be happy to host a FAQ on runrev.info if
>> we (the list) can agree on what should be included in such a FAQ.
>> --
>> Best regards,
>> Mark Schonewille
>>> 1. How can I get the number of the current card (and put it into a
>>> field or variable)?
>>>   Related: since I am reading a property from an object will the
>>> solution to this problem generalize to all properties for all  
>>> objects?
>>> 2. Has someone compiled a FAQ from this mailing list and where can I
>>> find it.
>>> Thanks
>>> Mark Smith
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list