Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a form from a grid value
Message
From
23/11/2005 16:25:55
Keith Emerson
Emerson Diversified Technologies Inc.
Maryland Heights, Missouri, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Opening a form from a grid value
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071795
Message ID:
01071795
Views:
66
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
Map
View

Click here to load this message in the networking platform