sibeliina
2012-01-06 15:35:57
function FindMainScreenHits(Bar: Integer): Integer;
var
TIA: TIntegerArray;
begin
TIA := GetHitsIn(MSCX, MSCY, MSX1, MSY1, MSX2, MSY2);
try
Result := TIA[bar];
except
Result := -1;
end;
end;
when i try add it as function its gives :
[Error] (121:10): Duplicate identifier 'FINDMAINSCREENHITS' at line 120
Compiling failed.