Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use combo for fields of a record?
Message
De
03/01/2006 10:46:46
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01082503
Message ID:
01082621
Vues:
7
>>>Hi Everybody! Happy New Year!
>>>
>>>I am trying to see how to do the following:
>>>
>>>I would like a combo box to show (in the pull-down list) values from fields of a record. For example, say a table has fields: FLD1, FLD2, FLD3. I want the combo to show the values in those three fields for the currently selected record of the table?
>>>
>>>I would appreciate any suggestions.
>>>
>>>Thank you.
>>
>>Would it be possible to have the combo box get its values from an array? If so, whenever you change records in the source table you can SCATTER To anArray?
>
>Yes, it seems that SCATTER to an array should work. I was thinking about creating a little routine to set values but maybe array is better. I will try your suggestion. Thank you very much.
SCATTER FIELD FLD1,FLD2,... TO combo.fieldArray
DIMENSION combo.fieldArray[ALEN(combo.fieldArray),1]
combobox.RowSource = "this.fieldArray"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform