Emptying a ListMagic list, unhiliting a line
Jim Bufalini
jim at visitrieve.com
Fri Mar 6 14:55:41 EST 2009
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
More information about the use-livecode
mailing list