Conversion from string to long
#1

hello, i am trying to convert a string to long to be able to read that position from gs.

 

i have this offset: 000ff886.

 

i have saved it in a string variable, but i need to convert it to long to be able to asign it to fs.position = "offset in long format".

 

i have tried this:

long.TryParse(Data[i].offset, out aux_off);
fs.Position = aux_off;

//where aux_off is format long
//and Data[i].offsets is format string

but i get aux_off = 0 and

 

2

 

2

 

would be aux_off = 1046662.

 

so, could anyone tell me how to convert it correctly because i cant get it correctly with code i have posted here.

 

thanks in advance



Messages In This Thread
[No subject] - by soryjero - 07-26-2013, 12:18 PM
[No subject] - by someone - 07-26-2013, 07:12 PM
[No subject] - by soryjero - 07-27-2013, 04:05 AM
[No subject] - by Paramount - 07-28-2013, 03:01 PM
[No subject] - by Johnny5 - 07-28-2013, 03:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)