Page 1 of 1

remove hilite selection from field

Posted: Sun Jun 21, 2009 10:17 pm
by crawfordmec
Greetings

I am using a field object that contains several lines and the field has a script that permits action based on which line is selected. The script (in part) is

on mouseUP
put the selectedText of me into myLine
if myLine is line 1 of fld "list_of_choices" of grp "group_choices" then
...
else if ...
...
end if

Problem: I need to "reset" my application by emptying fields and removing all hiliting and such.

I can not seem to find the commands to "reverse" the colors for the line or restore the field to as if nothing has been selected.

Note: all hiliting is removed if I "save and quit" and then reload the app.

Thank you for your consideration to this problem.
MikeC

Posted: Mon Jun 22, 2009 6:16 am
by Janschenkel
Assuming you're talking about a list field, you can

Code: Select all

set the hilitedLines of field "MyField" to empty
Jan Schenkel.

Posted: Mon Jun 22, 2009 11:35 am
by crawfordmec
Jens

It works! I very much appreciate it. BTW I often see your replies and thank you for your polite support of us "newcomers" - I swear I experimented with many combinations of commands via the message box with the idea of "empty" but missed this version.

Posted: Tue Jun 23, 2009 10:12 am
by Klaus
Hi Mike,
crawfordmec wrote:...I swear I experimented with many combinations of commands via the message box ...
no need to justify yourself, we are not the spanish inquisition :P

Posted: Tue Jun 23, 2009 11:05 am
by SparkOut
Heretic! Image