|
-
Mar 12th, 2000, 08:58 AM
#1
My condition:
every single form in my application on form load i've got to establish connection. The communication in this application consist between one menu application(*.exe) with varity of other application(*.exe)- using windows shell.
Formerly i'm using Delphi which is easier to uses unit (Unit pascal), I haven't try ADO yet with Delphi. But i think the concept of the connection might be the same in VB.
My question:
Is it posible to me to establish connection once at appliaction first loading then use it on any form that i like within the application? Can you tell the concept or the procedure.

-Khamal-
-
Mar 12th, 2000, 07:00 PM
#2
Lively Member
Create an application Class Module that is called from sub main at startup. use this class to set all your global project properties like application name, database connection and disconnection etc.
-
Mar 12th, 2000, 11:45 PM
#3
Guru
use a single, global connection object for all of your forms (assuming you are only accessing 1 database)
-
Mar 13th, 2000, 02:18 AM
#4
Thanx for both of you, Steven and Clunietp....
One final question to clunietp. Do you really work with Microsoft? If no then Microsoft should employ you Thanx to all for the tips. The idea on Class object is interesting (As Object....cool).
Khamal
-
Mar 13th, 2000, 09:47 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|