on 10-13-2006 7:55 AM
I have created two classes in the same project and i wanted to call a second class and make that form visible if i press a button of first class.Should i set the conection with Sap Business One to both the classes or is it fine if i set connection to the first class which has main method.Are there any methods to pop up the second class form if i press a button of the first class.
Thanks
Sowmya
You should just create an object or instance of the second class within your first class.
dim MyNewObject as Class2
MyNewObject.CreateForm 'Or whatever other method you implemented.
Now, if the conection is available to both clases, vía a global setting class or passed vía a method parameter, you just have to set a connection once and use it for all your processes.
Regards !
-
-
Alfredo Pérez
SAP Developer & Consultant
alperal (at) gmail.com
+52-(81)-137-937-80
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using B1DE wizards ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.