Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>nAnswer = MessageBox('Do you want to delete this authorization type?',4)
>IF nAnswer = 6
> REPLACE uplog WITH ALLTRIM(GETENV("USR")), ;
> updated WITH DATE()
> DELETE
> IF EOF()
> SKIP -1
> ELSE
> SKIP
> IF EOF()
> GO BOTTOM
> ENDIF
> ENDIF
>ENDIF
>wait window 'list refresh'
>ThisForm.List1.Refresh
>wait window 'form refresh'
>ThisForm.RELEASE
>
>*****************************************************
>
>What's wrong with above (ClickEvent of Delete button)? Does the VFP listbox have no such thing as 'Refresh'? What I need to do is get the listbox to refresh. When deleting (as above code), the deleted record remains on the list (does refresh when clicking on the listbox, but shouldn't relay on that). Same for adding a record (same thing, clicking on the listbox refresh, but should pop/show a new line right after 'Save' button).
>
>Chuck
Try calling the Requery method of the listbox.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement