2 quick questions

Peter Brigham MD pmbrig at gmail.com
Wed Jun 16 09:01:55 CDT 2010


try:
    put the currentcard of stack "License Maker"
or, if you want the name of the card:
    put word -1 of the currentcard of stack "PPtodo"into c
    put the name of card id c of stack "PPtodo"

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Jun 16, 2010, at 9:42 AM, Mark Schonewille wrote:

> Peter,
>
> I just tried this. It doesn't work.
>
> put the name of the currentcard of stack ""
> --> Message execution error:
> --> Error description: Chunk: can't find card
>
> "Current card" does, but "currentcard" doesn't. As far as I know  
> current and this are interchangeable.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
>
> Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
> Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
> share the clipboard of your computer over the local network.
>
> On 16 jun 2010, at 15:27, Peter Brigham MD wrote:
>
>> 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
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list