General information
Category:
Forms & Form designer
>>I have a combo box that is build by an array. When adding value I do an array insert. All of this is working just fine. I can look in the debug window and see that the array is built with all the correct records. Although when I go to the combo it displays only the first record of the array, I can not pull down and view the other record.
>>
>>Help Does any have ideas on what I might need to set on the combo box?
>>
>>
>>Thank you
>>
>>
>>HOlly Clawson
>
>Tell me step by step how you made you COMBO using an aray.
Init event of the form set
Dimension aParentno[1]
select compname ;
from custmast ;
where customer.parentno = custmast.custno into array aParentno
Gotfocus of the combo box:
if !mnew
select compname ;
from custmast ;
where customer.parentno = custmast.custno into array aParentno
else
select compname ;
from custmast ;
into array aParentno
gnCount = _TALLY
gcName = CUSTMAST.COMPNAME
IF ASCAN(aPARENTNO, gcName) = 0 && Search for company
*** Company not found-add it ***
DIMENSION aPARENTNO[gnCount+1]
= AINS(aPARENTNO, gnCount+1)
APARENTNO(GNCOUNT+1)=GCNAME
endif
THISFORM.REFRESH
endif
The combo is set to array with the rowsouce = to the array.
All of this works, The problem is that when I pull down the combo it only displays the first record of the array. like I said I can debug and see all of the records that are displayed in the Array.
Holly
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