Friday, July 31, 2009

Visual Basic code to C# Code?

Dim crReportDocument As World_Sales_Report


Dim crExportOptions As ExportOptions


Dim crDiskFileDestinationOptions As DiskFileDestinationOptions

Visual Basic code to C# Code?
VB syntax:





Dim %26lt;variable name%26gt; as %26lt;type%26gt;





C# syntax:





%26lt;type%26gt; %26lt;variable name%26gt;;





so the VB code in C# is:





World_Sales_Report crReportDocument;


ExportOptions crExportOptions;


DiskFileDestinationOptions crDiskFileDestinationOptions;
Reply:World_Sales_Report crReportDocument;


ExportOptions crExportOptions;


DiskFileDestinationOptions crDiskFileDestinationOptions ;





Hope this helps.

dogwood

No comments:

Post a Comment