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

Thanks for your help. I just my last question is when you populate a combobox with a series of values (with either fields or alias), they automatically get assigned a sequential number? How to you match that number with the actual value in the first field. My lookup screen does not necesarrily know which sequantial number to use, but I assume there must be some lookup command to lookup a data element in the list?

Randy

>>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform