Solved

How can we convert the vba code to c# code

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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