General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only