Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a form from a grid value
Message
From
27/11/2005 16:20:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/11/2005 19:53:02
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:
01072302
Views:
22
>As Usual Cetin your example worked and did what you explained very well. I applied it to my scenario and it did open the "contact" form. However it still opened the first record everytime regardless of which row I was on in the grid. Interstingly though when the "contacts" form opened the first record was the same but the first name was the first name of the name I selected in the grid. SO it replaced the first name instead of opening the "contacts" form with the record selected. Its kinda funny but really I am looking at a new way to try and select a record from a grid and open the form for editing. Then I have to figure out how to add a new record when opening the "contacts" form but I am sure that will be easier. Thanks for the example though it did teach me about parameters and being new I need all the help I can get.

Without seeing your codes it's only a guess game:) Are you using defaul datasession? That might be your problem. Check if in called form DataSession is 1 (my suggestion always use 2-private)
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
Reply
Map
View

Click here to load this message in the networking platform