DECLARE FUNCTION code39(tekstin AS STRING) AS STRING
FUNCTION code39(tekstin AS STRING) AS STRING
DIM bcode(0 TO 58) AS STRING*13
DIM TEKST AS STRING
DIM BITMAP AS STRING
DIM x AS INTEGER
DIM barlengte AS INTEGER
BCode(0) = "1001101011010"
BCode(1) = ""
BCode(2) = ""
BCode(3) = ""
BCode(4) = "1001001001010"
BCode(5) = "1010010010010"
BCode(6) = ""
BCode(7) = ""
BCode(8) = ""
BCode(9) = ""
BCode(10) = "1001011011010"
BCode(11) = "1001010010010"
BCode(12) = ""
BCode(13) = "1001010110110"
BCode(14) = "1100101011010"
BCode(15) = "1001001010010"
BCode(16) = "1010011011010"
BCode(17) = "1101001010110"
BCode(18) = "1011001010110"
BCode(19) = "1101100101010"
BCode(20) = "1010011010110"
BCode(21) = "1101001101010"
BCode(22) = "1011001101010"
BCode(23) = "1010010110110"
BCode(24) = "1101001011010"
BCode(25) = "1011001011010"
BCode(26) = ""
BCode(27) = ""
BCode(28) = ""
BCode(29) = ""
BCode(30) = ""
BCode(31) = ""
BCode(32) = ""
BCode(33) = "1101010010110"
BCode(34) = "1011010010110"
BCode(35) = "1101101001010"
BCode(36) = "1010110010110"
BCode(37) = "1101011001010"
BCode(38) = "1011011001010"
BCode(39) = "1010100110110"
BCode(40) = "1101010011010"
BCode(41) = "1011010011010"
BCode(42) = "1010110011010"
BCode(43) = "1101010100110"
BCode(44) = "1011010100110"
BCode(45) = "1101101010010"
BCode(46) = "1010110100110"
BCode(47) = "1101011010010"
BCode(48) = "1011011010010"
BCode(49) = "1010101100110"
BCode(50) = "1101010110010"
BCode(51) = "1011010110010"
BCode(52) = "1010110110010"
BCode(52) = "1100101010110"
BCode(54) = "1001101010110"
BCode(55) = "1100110101010"
BCode(56) = "1001011010110"
BCode(57) = "1100101101010"
BCode(58) = "1001101101010"
TEKST = "*"+tekstin+"*"
barlengte=LEN(tekst)
FOR x = 1 TO barlengte
barchar=ASC(MID$(tekst,x,1))-32
BITMAP=BITMAP+BCODE(BARCHAR)
NEXT x
code39=BITMAP
END FUNCTION
|