Establishing a DEFAULT for Drop-Down List (OpenInsight Specific)
At 17 NOV 1999 02:53:56PM Don Miller - C3 Inc. wrote:
I have a Drop-Down List Box that I would like to set the Default for programatically. What property to set and where should it be set?
Thanks..
Don Miller
C3 Inc.
At 17 NOV 1999 06:03PM Oystein Reigem wrote:
Don,
In my own programming I have used a GOTFOCUS handler that sets the default. If you want to do this properly you must distinguish between the first time you arrive at the listbox and a later time (the user might tab and click around and arrive at the listbox several times). It's only the first time the default should be set.
Anyway - to set the default value you can use either
OldVal=Set_Property( ListBoxCtrlName, "TEXT", DefaultValue )
or
OldVal=Set_Property( ListBoxCtrlName, "SELPOS", Number )
- Oystein -
At 18 NOV 1999 10:13AM Don Miller - C3 Inc. wrote:
Oystein ..
Point well taken about multiple times. Thanks
Don M.