Skip to Content
author's profile photo Former Member
Former Member

Invoking a class

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2006 at 09:15 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 13, 2006 at 08:41 AM

    Are you using B1DE wizards ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.