Is there a currentCard Property?

Sarah Reichelt sarah.reichelt at
Tue Mar 27 22:14:09 CDT 2007

On 3/28/07, Len Morgan <len-morgan at> wrote:
> I've got an application that has a stack with several cards that are
> selected by a selection from a combobox (which is in a toolbar group on
> all cards).  I need to update the information on the currently visible
> card when a new card is selected from the combobox or when the current
> record is changed (in another group on all cards).  Since this stack may
> end up being 50+ cards with a lot of data (from a database BTW), I don't
> want to update every card every time new data is selected.
> Is there a currentCard property or function I can use?  I'm going to
> have an updateFields handler on each card that will update only the data
> on that card.

It's listed as unsupported in the Engine Change Log file, but you can use:
    put the currentCard of stack "Whatever"

Another possibility is to get "line 1 of the recentCards".

Both of these allow for the stack with the cards to be other than the
front most stack at the time.


More information about the use-livecode mailing list