Solved

How can we convert the vba code to c# code

Posted on 2014-09-24
2
498 Views
Last Modified: 2014-09-25
Hi,

In the below function that i need to convert from vba code to c#.net,but this is not able to convert from vba to c#.net function.

may i know how to convert the datatype of "Variant" to c#.net.
 
 Public Function abc(id As Long) As Variant
 
End Function
0
Comment
Question by:mannevenu26
2 Comments
 
LVL 12

Accepted Solution

by:
Steven Wells earned 500 total points
ID: 40343366
you can try long or string. depending on the type of data needed from function
0
 

Author Closing Comment

by:mannevenu26
ID: 40343696
Thanks you Steven Wells......500 points to your answers....:)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now