Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox not refreshing
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox not refreshing
Divers
Thread ID:
00508872
Message ID:
00508872
Vues:
65
I have a form with textboxes and listboxes linked to multiple different views. When I do the following:
with thisform
if !empty(.pf1.p1.T1.value)
	insert into lv_ccn_tbl (ccn, ccn_link, ccn_stamp) ;
		value (alltrim(.pf1.p1.T1.value), .hldid, datetime())
	tableupdate(.t.,.t.,'lv_ccn_tbl')
	lc_id = .hldid
	requery()
	.pf1.p1.List1.refresh()
else
	messagebox('No Court Case Number to add',0,'Warning')
endif
endwith
insert into a view and then requery and refresh on listbox control, my new added entry does not show up. If I click on the listbox, then the entry will showup. How can I get the added entry to show up immediately in the listbox without the user having to click on listbox for the entry to showup? Also when I use requery(), does it only requery the lv_ccn_tbl view or does it impact my other view in the form also?

Thanks in advance
Nick Patel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform