469,609 Members | 2,088 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Just a question about Cint()

What's the different between this

CInt(iID)

Integer.Parse(iID)

/Kenneth
Nov 20 '05 #1
2 1665
Hi

The both return a integer but the arguments are diferent.
Kind Regards
Jorge
-----Original Message-----
What's the different between this

CInt(iID)

Integer.Parse(iID)

/Kenneth
.

Nov 20 '05 #2
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

"Kenneth" <ke*****@sagdalen.a.se> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
What's the different between this

CInt(iID)

Integer.Parse(iID)

/Kenneth

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sparky Arbuckle | last post: by
12 posts views Thread by Woody Splawn | last post: by
3 posts views Thread by Ken H | last post: by
9 posts views Thread by rut | last post: by
5 posts views Thread by Supra | last post: by
4 posts views Thread by Joseph | last post: by
4 posts views Thread by Peter Proost | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.