Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox refresh
Message
 
To
26/02/2001 16:27:11
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00479744
Message ID:
00479748
Views:
35
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform