24. Mai 2008 12:05
24. Mai 2008 17:48
24. Mai 2008 18:48
26. Mai 2008 14:46
26. Mai 2008 22:55
IF STRLEN(Code) = 13 THEN BEGIN
FOR a := 1 TO 10 DO BEGIN
SatzA[a] := 58+(a-1);
SatzB[a] := 68+(a-1);
SatzC[a] := 78+(a-1);
END;
Result := Result + FORMAT(Code[1]);
Result := Result + '"';
CASE Code[1] OF
'0' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[7]-'0'+1]);
END;
'1' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[7]-'0'+1]);
END;
'2' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[7]-'0'+1]);
END;
'3' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[7]-'0'+1]);
END;
'4' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[7]-'0'+1]);
END;
'5' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[7]-'0'+1]);
END;
'6' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[7]-'0'+1]);
END;
'7' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[7]-'0'+1]);
END;
'8' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[7]-'0'+1]);
END;
'9' : BEGIN
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[4]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzB[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[7]-'0'+1]);
END;
END;
Result := Result + '#';
Result := Result + FORMAT(SatzC[Code[8]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[9]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[10]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[11]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[12]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[13]-'0'+1]);
Result := Result + '"';
EXIT(Result);
END
ELSE IF STRLEN(Code) = 8 THEN BEGIN
FOR a := 1 TO 10 DO BEGIN
SatzA[a] := 58+(a-1);
SatzB[a] := 68+(a-1);
SatzC[a] := 78+(a-1);
END;
//Result := Result + FORMAT(Code[1]);
Result := '"';
Result := Result + FORMAT(SatzA[Code[1]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[2]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[3]-'0'+1]);
Result := Result + FORMAT(SatzA[Code[4]-'0'+1]);
Result := Result + '#';
Result := Result + FORMAT(SatzC[Code[5]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[6]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[7]-'0'+1]);
Result := Result + FORMAT(SatzC[Code[8]-'0'+1]);
Result := Result + '"';
EXIT(Result);
END;
3. Juni 2008 16:12
3. Juni 2008 16:28
3. Juni 2008 16:33