Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01042975
Message ID:
01042979
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform