Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Selecting a value in a combobox
Message
De
18/08/2004 06:00:21
 
 
À
16/08/2004 10:23:34
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00933440
Message ID:
00934051
Vues:
31
Randy,

If the value returned from the lookup is character, you might want to change the Value property of your combobox to a blank - as in:
mycombobox.Value= ""
HTH
Dennis

>>>Set the Value property to 1.
>>
>>OK - it populates, but it is populating with the FIRST value in the list instead of the one that the user selected from the lookup screen. Also, code in the interactive change event starts giving me problems - see the 4th line below. When I select an order from the combobox, the code works fine.
>>
>>THIS.ENABLED = .F.
>>THISFORM.LOCKSCREEN = .T.
>>IF !EMPTY(THIS.VALUE)
>>THISFORM.curordnum = VAL(THIS.VALUE)
>>
>>Hi Randy,
>>
>>You will need some code that will determine exactly what value to place in the Value property from your external source (i.e. Lookup Screen).
>>
>>As for your Interactive Change Event code, pay attention to the data types you are using. The Value property wants a numeric data type value. Ensure that this is what it is getting. Otherwise, I don't know what the context of your program is and what you are trying to accomplish and so cannot give you more specific assistance. Just always pay attention to data types as this solves many problems by just keeping data types organized.
>>
>>
>>Cheers,
>>
>>Larry Rix
>>Platts
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform