Just a question about Cint()

  • Thread starter Thread starter Kenneth
  • Start date Start date
K

Kenneth

What's the different between this

CInt(iID)

Integer.Parse(iID)





/Kenneth
 
Hi

The both return a integer but the arguments are diferent.
Kind Regards
Jorge
 
Kenneth,
In addition to Jorge's comments:

Integer.Parse is a Framework function.

CInt is a long time VB "intrinsic" function.

Integer.Parse will only parse strings, while CInt will convert any type to
an Integer, if that conversion is defined.

Hope this helps
Jay
 

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

Back
Top