Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01042975
Message ID:
01042979
Views:
17
Brain fart!

The 3rd param in AddListItem() specifies the column of the combo. So, as you increment the itemID so you increment the non-existant column. I assume you only have the 1 col so you don't need this papam anyway.

.AddListItem(ALLTRIM(a_acadr.cshipno),ln_key)

:-)


>Having a problem filling a combobox, this is what I'm doing:
>
>ln_key = 1
>
>SELECT a_acadr
>GOTO top
>DO WHILE !EOF()
>
>thisform.combo1.AddListItem(ALLTRIM(a_acadr.cshipno),ln_key,ln_key)
>ln_key = ln_key + 1
>
>skip
>ENDDO
>
>I thought this should work fine, I'm not filling it with much data, but it seems to get the first record and all the rest are blank? Am I having a brain fart? TIA!!!
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform