cancel
Showing results for 
Search instead for 
Did you mean: 

Convert C# to VB.NET

leon_laikan
Participant
0 Kudos

Hi,

I got this code from the forum, but I cannot convert it into VB.NET because apparently there is an error. I don't use C#.

An error occured converting your code, probably due to a syntax error: -- line 1 col 1: EOF expected

------------------------------------------------------------------------------------------------------------------------------------------------------

switch(pVal.FormTypeEx)

{

     case "139":

          SalesOrderClass.ItemEventHandler(ref string FormUID,  ref SAPbouiCOM.ItemEvent pVal, ref bool BubbleEvent);

     break;

}

------------------------------------------------------------------------------------------------------------------------------------------------------

Can anybody tell me where is the error?

I can convert the following without error:

switch(pVal.FormTypeEx)

{

     case "139":

          SalesOrderClass.ItemEventHandler( );

     break;

}

So, it seems that the error lies inside the ()

Thanks

Leon Lai

View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Leon,

Can you try this ?

Select Case (pVal.FormTypeEx)
    
Case "139"
         SalesOrderClass.ItemEventHandler( String FormUID,   SAPbouiCOM.ItemEvent pVal,  Boolean BubbleEvent)

End Select


Try to convert at this link:


CodeTranslator: Code Translation From VB.NET <-> C#


Convert C# to VB.NET. Convert C# projects to VB.NET



Hope it helps.


Thanks & Regards


Ankit Chauhan

SAP Business One Global Support

leon_laikan
Participant
0 Kudos

Hi Ankit,

Thanks for your reply.

You have done my homework!

In fact I wanted the VB code, and you have given it to me. No need to convert.

Best Regards,

Leon Lai