cancel
Showing results for 
Search instead for 
Did you mean: 

Invoking a class

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

www.corponet.com.mx

SAP Developer & Consultant

alperal (at) gmail.com

+52-(81)-137-937-80

Answers (1)

Answers (1)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you using B1DE wizards ?

Former Member
0 Kudos

No iam not using B1DE wizards.