Deselecting a line
Klaus Major
klaus at major-k.de
Tue Apr 11 13:53:40 EDT 2006
Hi Graham,
> This seems a very simple question, but I haven't found the answer,
> either by experiment or from the RR documentation.
> I can easily highlight a line in a field by a script like
> select line mySpecialLine of field "myField"
>
> and of course my user can do it with a click on a line in the
> field; and I guess I could script a click myself; but what I want
> to do at the moment is the reverse, i.e. deselect a line which my
> user has selected without removing focus from the field and without
> selecting another line. The obvious answer would seem to be
>
> select empty
>
> but it doesn't work for me, and anything involving 'the selection'
> actually alters the content of the field AFAICS
> Dumb I know... but could someone help me?
maybe this does help (in case it is a listfield)?
...
set the hilitedlines of fld "myField" to 0
# zero
...
> TIA
>
> Graham
> ----------------------------------------------------------------------
> -----
> Graham Samuel / The Living Fossil Co. / UK and France
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list