function IntToV36(X: Integer): String;var N, T: Integer; buf: array [0..15] of Byte;begin N:= 16; repeat Dec(N); T:= X mod 36; if T < 10 then buf[N]:= T + Ord('0') else buf[N]:= T + (Ord('A') - 10); X:= X div 36; until X = 0; T:= 16 - N; SetLength(Result, T); Move(buf[N], Result[1], T);end;