Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11275

Re: Code128 with font [solved]

From Stefan Dietl <info@sdsoft.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Code128 with font [solved]
Date 2018-01-09 08:51 +0100
Message-ID <fbjajiFd92aU1@mid.individual.net> (permalink)
References <fbhgfcFif6U1@mid.individual.net>

Show all headers | View raw


Info from here: http://www.jtbarton.com/Barcodes/Code128.aspx#FreeCode128

FUNCTION Code128( ccode AS STRING ) AS STRING PASCAL
LOCAL i, nlen AS DWORD
LOCAL cret, cx AS STRING
LOCAL nCodeX, nSum AS DWORD

	nCodeX := 104 //B:104, A:103, C:105
	
	nSum := nCodeX

	cret := CHR(nCodeX+100)
	nlen := SLen(ccode)
	FOR i := 1 UPTO nlen
		cx := SubStr3(ccode,i,1)
		nSum += ((Asc(cx)-32)*i)
		cret += cx
	NEXT
	cret += CHR( (nSum % 103)+32 )
	cret += CHR( 206 )

RETURN cret

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Code128 with font Stefan Dietl <info@sdsoft.it> - 2018-01-08 16:19 +0100
  Re: Code128 with font [solved] Stefan Dietl <info@sdsoft.it> - 2018-01-09 08:51 +0100
    Re: Code128 with font [solved] jorge.dextrasistemas@gmail.com - 2018-01-11 04:05 -0800
      Re: Code128 with font [solved] Stefan Dietl <info@sdsoft.it> - 2018-01-12 07:47 +0100

csiph-web