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

1) Use lParameters instead
2) Be sure it's the first line in init
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform