General information
Category:
Coding, syntax & commands
I need to know how to return to a selected record in a list box after going to another form. The right click event of the listbox takes the user to another form and allows for the editing of the record that they selected. Now when they return to the form with the listbox I want to return to the record that they right clicked on. How do I do this?
Here is my code in the right click event:
* activity listbox rightclick
* sets the cursor position to the record selected in list box
* sends it to activity form to show that record
codenum = amycursor.secretcode
* tells activity form that it is being entered from actquery form
queryscreen = .T.
*hides this form and shows the activity form
thisform.hide
do form activity
show window activityform
*when closes activity form this form gets its focus back
*does the gotfocus() event code
thisform.gotfocus()
Thanks in advance,
Tyler
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only