Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox not displaying populated value after insert
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Listbox not displaying populated value after insert
Divers
Thread ID:
00205247
Message ID:
00205247
Vues:
61
I have a listbox that refuses to show me the value that I just added. I insert my value into table called o_div, then I requery the view (lv_div) that is based on o_div table. Finally, I refresh the listbox, but to no avail it still doesn't show my item added. If I click in the listbox at the supposedly spot that my value should appear, then the value added does appear. Here is the following code that I have written to populate my listbox:

with thisform
do case
case .hldparm1 = 1 && if it is division parameter
.list1.rowsourcetype = 6
.list1.rowsource = 'lv_div.division'
cursorsetprop('sendupdates', .f., 'lv_div')
...
...
do case
case nAnswer = 6
insert into o_div (division) value (.txtadd.value)
tableupdate(.t., .t., 'o_div')
requery('lv_div')
.list1.refresh()
.refresh()
endcase
endcase

I am requerying my view after I update my table and also refreshing the listbox (list1). However, if I leave the form and come back the listbox shows the item I just added. Has any experienced this problem? help appreciated

Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform