473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Just a question about Cint()

What's the different between this

CInt(iID)

Integer.Parse(iID)

/Kenneth
Nov 20 '05 #1
2 1765
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Tim | last post by:
Dear Developers, Firstly, I'm not sure where this post should go so I apologise if this is in the wrong group or area. I'm currently interviewing for a vb.net developer who doesn't mind...
2
by: Sparky Arbuckle | last post by:
The code below will pass a credit card as being valid if it contains dashes, spaces, and also alphanumerics. How can I check for only dashes and spaces and return invalid when the user inputs...
12
by: Woody Splawn | last post by:
I am trying to determine the age of a person based on two dates, the Date of Birth and Today(). I have a function that does this but it is kludgey and is giving me an age that is pretty close...
3
by: Ken H | last post by:
Hi I have a question about architecting solutions.. I have a part of a project which requires me to track person details (name, addresses, etc... Should I be creating Person objects, Address...
9
by: rut | last post by:
If I have a picturebox with a background image and I want to 1. Display text atop of the background and 2. Have transistions between text; ie, when the text changes, the screen can fade out/in...
5
by: Supra | last post by:
i just added "is nothing" to get rid or error that i posted below. but it is not displaying in richtextbox. all i seeing is debug window. Dim nrtb As New RichTextBox Sub DisplayMessage(ByVal rtb...
4
by: Joseph | last post by:
Hi all- I am a former VB6 programmer and new at C# and I have a question dealing with converting some code from VB6 to C#. The code is below and essentially, what it does is gets data from a SQL...
4
by: Peter Proost | last post by:
Hi group, it's been a long time since the last time I've been here but I have a question. I'm working with timespan.parse for calculating a duration, I have to add strings which are in the...
5
Vini171285
by: Vini171285 | last post by:
Hi, Here in this code we have used CInt before Session,If we wont use CInt the code doesn't work in the intended way....and using CInt sometimes gives error..It works for 1 day & the other day shows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.