Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMBO
Message
From
29/05/1997 12:39:16
Holly Clawson
Travelcenters of America
Westlake, Ohio, United States
 
 
To
29/05/1997 12:28:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: COMBO
Miscellaneous
Thread ID:
00034077
Message ID:
00034083
Views:
38
>>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
Map
View

Click here to load this message in the networking platform