Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box controls
Message
From
12/05/2000 12:51:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
List Box controls
Miscellaneous
Thread ID:
00369133
Message ID:
00369133
Views:
44
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
Map
View

Click here to load this message in the networking platform