General information
Category:
Coding, syntax & commands
Title:
Opening a form from a grid value
I have two forms the first is a data entry form named "Contacts." The second named "Change"
is a form with a grid that shows all the contacts which is read only. I am trying to select a name in the grid and open the "contact" form with that record for editing or viewing purposes.
Following the example given in VFP9 help on "Passing Parameters to a form."
I made a new property named "firstname" for the "change" form.
The value of the property "firstname I left at .F.
In the "change" form's Init event I Put
PARAMETERS cString
THIS.firstname=cString
In the double click event for the grid Text1 "which reflects the first name of the contact"
I placed "DO FORM change WITH THIS.Value
The error shows that "No PARAMETER statement is found"
I am sure it is my not understanding the example and I am missing some code somewhere but I have checked everything I can. Any assistance will be greatly appreciated.
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