Selecting a field in a List Field

Klaus Major klaus at major-k.de
Fri Aug 12 10:47:39 EDT 2005


Hi Alex,

> A problem still remains :
> When a card opens after a go to card "Card Name", how can have a  
> command done immediatly like :
>     Highlight the first line of a Field List ?

...
go cd "name of card
set the hilitedlines of fld "your list field here" to 1
...

>     Have some Lists Hidden and some others showed in this card ?

...
hide fld "f1" of cd xyz
hide fld "f2" of cd xyz
show fld "f3" of cd xyz
show fld "f4" of cd xyz
## etc...
go cd xyz
...

If you go to the card first and then show/hide fields, you might see  
a little flashing,
so this is probably the best way :-)

If you do not need to do this dynamically you can also script a  
"preopencard"
handler.

Hope that helps.

> Alex.

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list