General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only