2 quick questions

Peter Brigham MD pmbrig at gmail.com
Wed Jun 16 08:27:08 CDT 2010


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
http://home.comcast.net/~pmbrig

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



More information about the use-livecode mailing list