function RightStr(const AText: String; const ACount: Integer): string; begin Result := Copy(AText, Length(AText) + 1 - ACount, ACount); end;