Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing values from the form back to the calling program
Message
From
06/05/2002 13:23:30
 
 
To
01/05/2002 19:54:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00651676
Message ID:
00653152
Views:
18
>Hello Group,
>
>I have created a log on or log in form that takes parameters from the calling program and makes the connection with the remote SQLServer. How do I get the value of the connection handle from the form back into a variable in the program. I am saving the value of the connection handle in thisfrom.txtConnectionHandle.value.
>
>Thanks
>Jim

Assuming you have an application that called the form and that it is an object, you can set a property on the calling application to store the connection handle.

Like this:
MyApp.nConnectHandle = MyForm.nConnectHandle

You can also do something like this:
_Screen.AddProperty( 'nHandle', SQLConnect( parameters... blah blah blah ... ))

In either case, the connection handle is available throughout the application regardless of what type of form was used to establish the connection.
Previous
Reply
Map
View

Click here to load this message in the networking platform