Skip to Content
0

Arguments using C#

Sep 18, 2017 at 07:41 AM

40

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
ANKIT CHAUHAN
Sep 18, 2017 at 08:52 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded