wouldn't combineTPA give an error if one of the TPAs is empty? Try...Except perhaps?
edit:
~RMSCAR Code:if ((High(a) > 0)and(High(b) > 0)) then
begin
Pa := GetTPABounds(CombineTPA(A, B));
Result := (Pa.x1 >= 100);
//or
if ((High(a) + High(b)) > 0) then
begin
try Pa := GetTPABounds(CombineTPA(A, B)); except exit; end;
Result := (Pa.x1 >= 100);










Reply With Quote



. Apart from that I use it in a procedure where usually 0 comes from combining two TPA's (which I have yet to fix
) but the script still carries on.





