Solved

How can we convert the vba code to c# code

Posted on 2014-09-24
2
496 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

867 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

23 Experts available now in Live!

Get 1:1 Help Now