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

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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/bff8ff3282a09e8b8525682c006d4ee0.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1