LOL, you are correct sir
Excuse me!
I must be the one that is at the pub atm!
btw
feast your eyes this I just whipped up in some code..
function TIGESFieldHelper.ToInteger: integer;
begin
Result := StrToInt(DefaultString(String(Self).Trim,'0'));
end;
The helper is on a Array of char of 8 chars long and there is a number that is right justified so I put the compiler to work..
This works well in Delphi , I just tested it here and it works well in Fpc too, it appears..
most likely why I got the StrtoHex wrong here, my mind is elsewhere.
btw, it would be nice if we had a "DefaultString" function. As you can see it could be used in so many places in code to replace existing code, this will reduce the code base..
don't worry, it seems Delphi does not have the "DefaultString" function either.. oh well..
have fun, drinks on me, You may have a hard time locating me to pay for it though !
P.S.
I know I can use the StrToIntDef but I am just hinting for maybe some support on getting the "defaultString" added