Emptying a ListMagic list, unhiliting a line

George C Brackett gbrackett at luceatlux.com
Fri Mar 6 15:20:24 EST 2009


Thanks, Jim.  One other question: could one (or ListMagic) put the  
header group and the field into a group so that hiding the list does  
not require hiding the field and the header group?  Or would that gum  
things up?

George

On Mar 6, 2009, at 2:55 PM, Jim Bufalini wrote:

Hi George,

> How does one empty a ListMagic list (v. 1.1.3)?  I've tried from the
> message box
> 	LMPopulate  empty, the long id of fld "Staff" of card 1  (also ""
> instead of empty)
> and get "Error description: Field: tabstops is not a positive
> integer".  I then tried
> 	put space & tab & space & cr into tList; LMPopulate tList, the
> long
> id of fld "Staff" of card 1
> and get the same error.

Either should work:

LMPopulate ,the long id of fld "<YourListName>" -- Notice nothing is in
front of the comma

And...

Populating with your space / tab ... / cr (single line).

Just tested both. Worked fine. No errors. Try doing it from a button  
instead
of the message box.

Also, understand the widget is a just a list field and the header is a
group, so for example, if you want to make it disappear, you can set the
visible of them.

> Similarly, I have wanted to unhilite a line by script in a ListMagic
> list, and found no such command.  All I could do was unhilite
> everything by re-populating the list.
>
> Any ideas?

Here you can use "empty" ;-)

LMSetHilitedLines "",the long id of fld "<YourListName>"

Aloha from Hawaii,

Jim Bufalini

_______________________________________________
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