SRL Archive - OSR Help

String to integer


Stuart

2011-12-03 12:04:16

For some unknown reason i'm getting Type Mismatch for my following function.


function getPriceGE() : integer;
var
textCols: TIntegerArray;
begin
textCols := [6400255];
//Result := int('100'); << also fails
Result := int(GetNumbers(GetTextAtExWrap(312, 184, 423, 198, 0, 1, 1, textCols[0], 0, UpCharsEx)));
end;

I know that the GetNumbers returns the GE price just fine however it won't convert it. Even doing int('100') gives me a mismatch.

Any help would be appreciated :)

weequ

2011-12-03 12:55:28

Use StrToInt(S: String): Integer;

Stuart

2011-12-03 13:47:13

Perfect :) thank you