Skip to Content
avatar image
Former Member

Arguments using C#

Hello experts ,

How i could take the arguments from Launch Application using Di Add-on in c#.

I know that in visual basic is like My.Application.CommandLine.Args(0)

Kind Regards ,

Ifigenia Koumbarda

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 18, 2017 at 08:52 AM

    Hi,

    You could have referred to SDK Help Center for the same. Here is the sample:

    SAPbouiCOM.SboGuiApi SboGuiApi = null; 
    string sConnectionString = null; 
    SboGuiApi = new SAPbouiCOM.SboGuiApi();
    sConnectionString = System.Convert.ToString( Environment.GetCommandLineArgs().GetValue( 1 ) );
    SboGuiApi.Connect( sConnectionString );
    SBO_Application = SboGuiApi.GetApplication( -1 );
    

    Hope it helps!

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded