07-26-2013, 12:18 PM
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

