Click to See Complete Forum and Search --> : convert a string to 64 bit integer in vb.net
reshmip
June 14th, 2005, 01:05 AM
given a string (it may contain numbers or alphabets) i want it to be converted to a 64 bit integer value. i saw a vc++ program in which some shift and or operation is applied and the string converted to a 64 bit value.is there any such method in vb.net ?.after gettting the 64 bit value, i have to apply some permutations to it.can somebody help me
Shuja Ali
June 14th, 2005, 01:55 AM
given a string (it may contain numbers or alphabets) i want it to be converted to a 64 bit integer value. i saw a vc++ program in which some shift and or operation is applied and the string converted to a 64 bit value.is there any such method in vb.net ?.after gettting the 64 bit value, i have to apply some permutations to it.can somebody help me
You cud use Convert.ToInt64 method to do the conversion..
reshmip
June 14th, 2005, 03:59 AM
convert.ToInt64 can be used only if the string contains numbers.it will not accept alphabets.
JoshuaColeman
June 15th, 2005, 01:03 PM
this is even easier
CInt(Object as expression)
this is how i always do it.
- Josh
coolbiz
June 15th, 2005, 03:01 PM
convert.ToInt64 can be used only if the string contains numbers.it will not accept alphabets.
Can you give a sample of this string? Is it in HEX format? If not how do you convert alphabet into number?
JoshuaColeman
June 16th, 2005, 08:16 AM
Like I say, just use CInt(string)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.