dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: SQL
Expertise: Beginner
Jun 3, 1997

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


List boxes: Default values

Question:
In a pop-up list, how do you get the value associated with the default value to appear in the listbox before clicking on the field? For example, I have a pop-up list containing marital statuses. I want 'Single' to appear in the listbox window without the user having to scroll the list. How can I achieve this?

Answer:
To set a value in a list box, all you have to do is to set the Value property of the list box to the actual value of the entry in the list box. To make a value the default for a pop-up list, you must set the DefaultValue property to the actual value of the desired item.

If your Translation property for the pop-up list looks like this:
Single = 1
Married = 2
Divorced = 3
Widowed = 4
your DefaultValue for the pop-up should be 1 to make 'Single' the default value.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date