Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding items to combobox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01401384
Message ID:
01401390
Vues:
39
>>I have a combobox name c1. I am populating the combobox through a cursor and setting rowsourcetype = 2. After populating the combobox, I want to add another value using AddListItem, but it doesn't seem to add anything. I'm I missing some here?
>>
>>
>>
>>REQUERY('lv_institution')
>>SELECT i_instname as wn, i_instid as wi from lv_institution WHERE i_kitchen != .T. INTO CURSOR cboloc READWRITE 
>>thisform.c1.RowSource='cboloc'
>>thisform.c1.RowSourceType= 2 
>>
>>&&here is where I am adding another value into combobox
>>x = .c1.listcount
>>thisform.c1.AddListItem('SELECT INSTITUTION',x+1)
>>
>>
>>thanks
>>Nick
>
>AFAIK AddListItem is only for values and arrays as the RowSource. Just add a new record to your cursor instead.


duh, thank Naomi

Nick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform