Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox not populating programmatically
Message
De
02/04/1999 14:11:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00204733
Message ID:
00204735
Vues:
22
>I am trying to populate my listbox programatically using the following commands:
>
>.list1.rowsource = lv_div.division
>.list1.rowsourcetype = 6
>requery('lv_div')
>thisform.list1.refresh()
>.txtDivision.setfocus()
>
>and I get the following error message
>
>"field" phrase is not found (Error 1130)
>
>Nothing shows up in my list box, but when I used the builder for listbox it uses fields form rowsource type and lv_div.division is used for rowsource. Can anyone tell me what I am doing wrong?
>
>help appreciate
>Nick

Usually, this error message indicates typo in rowsurce line. Do you have there exactly what you posted?
Anyway, there is one more thing here. If you change List.Rowsource content, doing Requery('view'), then you should bring it to the list by firing List.Requery and after this you may fire List.Refresh
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform