Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables
Message
From
19/02/1997 11:34:24
 
 
To
19/02/1997 10:52:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00021081
Message ID:
00021095
Views:
38
>how do you pass variables between 2 different forms. The problem I am having is that I have 2 form each with a private data session. I want to assign the current record number to a variable and pass that to the other form. any suggestions. thanks fot the help.

The line of code that calls the second form should look like this

'Do Form Form2 WITH VARIBLE'

Replace 'VARIBLE' with either RecNo() or the ID of the record you want to pass

In the INIT Event of the second form the first line should look like this

Parameters VaribleName

You can then either use a seek/select query or go commands to find the record

Hope this helps
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform