Oops.. I thought he meant VB.NET to C#, not VBA to C#.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"clintonG" wrote in message news:5519698@discussion.autodesk.com...
Could it be because the O.P. wants to know how to convert -- VBA -- to C#?
If there's a VBA to C# converter around I would sure like to know about it.
There is no such thing as a Variant data type in VB.NET so pasting the code
into a VB.NET to C# converter will faill anyway.
For the OP though it might help to explain C# does away with the excess
verbiage such as Dim when initializing. Other verbiage too. The first
statement would be writen as follows... very easy to convert on the fly.
// Object Type Object Name End of statementdelineator
AcadLWPolyline plineObj ;
But as noted, the explodedObjects was initialized in VBA as a Variant data
type which I do not think .NET supports. Using Google to
search msdn2.microsoft.com is where I would go next but if I intended to
learn C# I would go to Deitel & Deitel [1] and get the title of a couple of
their C# "Learn to Program" textbooks. I'd have my local Barnes & Noble
order them all for in-store review and I would buy the one I thought would
help me to learn C#.
--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
[1] http://deitel.com/
"Tony Tanzillo" wrote in message
news:5519512@discussion.autodesk.com...
Why not just go to any of the sites on the net
that convert code between C# and VB.NET ?
Or, get a copy of Reflector, and you can view
the compiled code in any of the languages it
supports.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5519449@discussion.autodesk.com...
VBA code:
Dim plineObj As AcadLWPolyline
````````````
' Explode the polyline
Dim explodedObjects As Variant
explodedObjects = plineObj.Explode
I want to use C# to write it ,please help me thinks you