Solved

How can we convert the vba code to c# code

Posted on 2014-09-24
2
490 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
Comment Utility
you can try long or string. depending on the type of data needed from function
0
 

Author Closing Comment

by:mannevenu26
Comment Utility
Thanks you Steven Wells......500 points to your answers....:)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

9 Experts available now in Live!

Get 1:1 Help Now