[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Establishing a DEFAULT for Drop-Down List (OpenInsight Specific) ====
=== At 17 NOV 1999 02:53:56PM Don Miller - C3 Inc. wrote: ===
{{tag>"OpenInsight Specific"}}
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.
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=BFF8FF3282A09E8B8525682C006D4EE0|View this thread on the forum...]]