Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How can we convert the vba code to c# code

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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.

861 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