DECLARE FUNCTION codabar (tekst AS STRING) AS STRING
FUNCTION codabar (tekst AS STRING) AS STRING
DIM bcode (36 TO 68) AS STRING *11
DIM telop AS STRING
DIM bitmap AS STRING
DIM x AS INTEGER
DIM char AS INTEGER
DIM lang AS INTEGER
bcode(36)="1011001010"
bcode(43)="10110110110"
bcode(45)="1010011010"
bcode(46)="11011011010"
bcode(47)="11011010110"
bcode(48)="1010100110 "
bcode(49)="1010110010 "
bcode(50)="1010010110 "
bcode(51)="1100101010 "
bcode(52)="1011010010 "
bcode(53)="1101010010 "
bcode(54)="1001010110 "
bcode(55)="1001011010 "
bcode(56)="1001101010 "
bcode(57)="1101001010 "
bcode(58)="11010110110"
bcode(65)="10110010010"
bcode(66)="10100100110"
bcode(67)="10010010110"
bcode(68)="10100110010"
lang=LEN(tekst)
FOR x =1 TO lang
char=ASC(MID$(tekst,x,1))
telop=RTRIM$(bcode(char))
bitmap=bitmap+telop
NEXT x
codabar=bitmap
END FUNCTION
|