[visualbasic]convert string to integer
#1

i am trying to read a string from a text file with this line:

 

test = fileReader.ReadLine()

 

after this, test = 0AF4B210

 

and i want to convert this to a integer.

 

how could i do this?

 

i have been trying with differents functions from system, but i havent got it.

 

anybody can help me please?

 

p.s. i use visual studio 2010

#2

in C# its,

Convert.ToIn32(string, base)

so it would be something like

 

Convert.ToInt32("0AF4B210", 16);

#3


in C# its,

Convert.ToIn32(string, base)

so it would be something like

 

Convert.ToInt32("0AF4B210", 16);

 

thanks so much wiza Smile



Forum Jump:


Users browsing this thread: 1 Guest(s)