packratt_jk
asked on
atoi ()
I'm looking for a function in vb (access 97) that will do the equivolent
of what the atoi() function does in c / c++
Please help!!!
of what the atoi() function does in c / c++
Please help!!!
ASKER
sorry - also need the reverse
itoa()
itoa()
Use CStr() or Str() to convert numbers to strings.
From VB Help:
"The Str function recognizes only the period (.) as a valid decimal separator. When different decimal separators may be used (for example, in international applications), use CStr to convert a number to a string."
You may also use Val() and Format()
From VB Help:
"The Str function recognizes only the period (.) as a valid decimal separator. When different decimal separators may be used (for example, in international applications), use CStr to convert a number to a string."
You may also use Val() and Format()
ASKER
hmmm....
first of all, I only need to convert one character.
I need the ansi / ascii equviolent of the character to be returned
example: the character '2' should translate to 50 (decimal)
first of all, I only need to convert one character.
I need the ansi / ascii equviolent of the character to be returned
example: the character '2' should translate to 50 (decimal)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect!!!
sorry I asked the wrong question...
I knew what I meant :)
Thanks
sorry I asked the wrong question...
I knew what I meant :)
Thanks
For example:
Dim A As Integer
Dim SSN As String
SSN = "177475884"
A = CInt("1234")
B = CInt(SSN)