Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use combo for fields of a record?
Message
From
03/01/2006 10:46:46
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01082503
Message ID:
01082621
Views:
8
>>>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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform