Take a look at this small program...
0001 FOR I = 0 TO 625
0002  A=INT(I/26) ; B=MOD(I,26) ; C=MOD(A,26)
0003  PRINT I,CHAR(65+C),CHAR(65+B)
0004 NEXT I

It will map the numbers from 0 to 625 into AA to ZZ.

-- Rod Hills

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brutzman, Bill
Sent: Friday, April 22, 2005 11:54 AM
To: 'u2-users@listserver.u2ug.org'
Subject: [U2] Base 16, 26, 36

We have a bar-code labeling challenge. We need to print hundreds of
unique
serialized labels.

We have three characters available.

I am expecting to do something like

Master (pallet):  H42 2xxxxx MMM       H42 is our supplier ID.

Box # 1           H42 2xxxxx AA0       2xxxxx is the six-digit packslip
number.
Bag # 1           H42 2xxxxx AA1
                  H42 2xxxxx AA2  

Box # 2           H42 2xxxxx AB0
Bag # 1           H42 2xxxxx AB1
                  H42 2xxxxx AB2  

Z * Z = 26 * 26 = 676.  Thus, we could have up to 676 boxes.

Thus on a single packing slip, we could have up to 676 boxes each having
nine bags.

It appears that UniBasic has no built-in functionality (operators) to
handle
base 26, that is, A thru Z.
 
base 36,          A thru Z, and one thru ten.

I expect that it could be done, brute force, using arrays and equates.

Using Wintegrate, we write a txt-file from UniVerse to Windows.
BarTender
(Windows-based) prints labels from the txt file.

BarTender has some VB functionality that I expect we will be forced to
use. 

I am writing because I do not want to overlook other U2 voodoo which may
be
available.

Suggestions would be appreciated.

--Bill
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to