how to force convert string to long/double

G

Guest

Hi, I am new here. Please forgive me if I ask some question already got
answered. I do search forum first but I did not find the answer.
here is my question, in VB you can convert a string to long by CLng or to
double by CDbl. How I can do it in C#?
I tried (long)MyStringVariable and MyStringVariable as long, neither work.
also, what the data type in C# for Date of VB?

Thank you
Wes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top