Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dropdown list
Message
De
03/01/1997 22:59:09
John Adams
John T. Adams Software Consulting Svcs
Keedysville, Maryland, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00016377
Message ID:
00016436
Vues:
48
>>>Ok, guys. After you stop laughing :) How do I get the first element in a dropdown list to appear at creation time. In the past I have used listindex however this particular dropdown is populated by fields and not my usual array. :( Any ideas?
>>
>>Because the control is bound to the table field, what I usually do, is to do the REPLACE of the control value from the AddNew() method.
>
>Thanks Michel.

Joe,

Be careful with this... If you are opening your form on a blank record, but your user has the ability to search for a new record, or the like, you may not want to be replacing the value with the drop downlist value. What I will often do if I want the value to appear, but not necessarily be stuck into the table at form start up, is to bind the list to a custom property of the form, and then when saving the record, replace the field value with the value stored in the custom property.

HTH,

John Adams
John Adams

John T. Adams
Software Consulting Services
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform