Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Discusion Combo
Message
From
27/03/2001 14:02:07
 
 
To
27/03/2001 12:27:34
Ben Dekker
Dekker Soft & Hardware
Axel, Netherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00488882
Message ID:
00489102
Views:
12
>>The minimum you need is rowSource (5) & rowSourceType
>Sorry but that's not working at all.

Try this:

oForm = create('form')
oForm.AddObject('Combo1', 'Combobox')
dime aItems[5]
aItems[1] = 'A'
aItems[2] = 'B'
aItems[3] = 'C'
aItems[4] = 'D'
aItems[5] = 'E'
oForm.Combo1.RowSourceType = 5
oForm.Combo1.RowSource = 'aItems'
oForm.Combo1.Visible = .T.
oForm.Show(1)


What do you get? When you say its not working, explain. What do you see, what do you expect? Lemme guess, you see the first item and thats it. Try doing a Comboboxname.Requery() after you populate the array.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform