Click here to Skip to main content
16,009,847 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River7-Dec-05 4:19
Mekong River7-Dec-05 4:19 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River7-Dec-05 14:50
Mekong River7-Dec-05 14:50 
GeneralRe: How to get list of message in OE or ms outlook Pin
vocaris8-Dec-05 4:59
vocaris8-Dec-05 4:59 
GeneralRe: How to get list of message in OE or ms outlook Pin
Mekong River8-Dec-05 10:56
Mekong River8-Dec-05 10:56 
Questionmoving forms to the mouse pointer on desktop in vb6 Pin
Roy_Joseph6-Dec-05 20:03
Roy_Joseph6-Dec-05 20:03 
QuestionBARCODE Generation Pin
HemaRawat6-Dec-05 19:35
HemaRawat6-Dec-05 19:35 
AnswerRe: BARCODE Generation Pin
progload7-Dec-05 4:37
progload7-Dec-05 4:37 
AnswerRe: BARCODE Generation Pin
Polymorpher7-Dec-05 9:38
Polymorpher7-Dec-05 9:38 
In the program i am writing i use the software you can find at this sight
http://www.idautomation.com/formscontrols/

They work well. Gives you more options then some. And suports alot of different formats. Also, there is a standard for barcodes that you should folow if you are writing this for a bussiness. Here is a sumary of how it works and the address where you can look at the info for yourself. Please keep in mind that this is a report i sent to my boss regaurding our product so you may have to ignore some of what im saying in it that is specific to us. Also i copy and pasted most of this from the howstuffworks sight. HAPPY HACKING:

===========================================================================
Sigts to use:

-www.howstuffworks.com/upc.htm
-www.uc-council.org
===========================================================================

===========================================================================
NOTES:

-We may need to aply for a manufacturer id with the council
-No price is incoded. the POS system looks up the UPC and sends back the
price of the item.
===========================================================================

===========================================================================
BAR CODE FORMAT:

-First 6 digits are the manufacturer id and the first of these 6 is the
"number system character"
-next 5 digits are the item # set by the store (have them set it in meatbooks)
-last digit is the check digit to insure the scan read correctly.
===========================================================================

===========================================================================
HOW TO MAKE THE CHECK DIGIT:

using the code 63938200039 calculating the check digit:

1.) Add together the value of all of the digits in odd positions
(digits 1, 3, 5, 7, 9 and 11).
6 + 9 + 8 + 0 + 0 + 9 = 32

2.) Multiply that number by 3.
32 * 3 = 96

3.) Add together the value of all of the digits in even positions
(digits 2, 4, 6, 8 and 10).
3 + 3 + 2 + 0 + 3 = 11

4.) Add this sum to the value in step 2.
96 + 11 = 107

5.) Take the number in Step 4. To create the check digit,
determine the number that, when added to the number in step 4,
is a multiple of 10.
107 + 3 = 110

6.) The check digit is therefore 3.

Each time the scanner scans an item, it performs this calculation.
If the check digit it calculates is different from the check digit it
reads, the scanner knows that something went wrong and the item
needs to be rescanned.
===========================================================================

===========================================================================
THE NUMBERSYSTEMCHARACTER(first digit of manufacturer id):

0 = Standard UPC number
(must have a zero to do zero-suppressed numbers)

1 = Reserved

2 = Random-weight items
(fruits, vegetables, meats, etc.)

3 = Pharmaceuticals

4 = In-store marking for retailers
(A store can set up its own codes, but no other store will understand them.)

5 Coupons

6 Standard UPC number

7 Standard UPC number

8 Reserved

9 Reserved


# 4 example
Since Toys R Us is the only store that will ever use this bar code
it's the only place where the gift certificate can be redeemed
Toys R Us made up its own UPC code for the gift certificate and used
number system 4 so it could do that.
===========================================================================

===========================================================================
COUPON BAR CODES:

the coupon's bar code starts with a 5 to indicate that it is a coupon.
The next 5 digits are the Post's manufacturer ID.
The next 3 digits are called the family code.
The next 2 digits are a value code.
The final digit is the normal check digit.

The family code and value code are set up arbitrarily by the UPC
coordinator for the manufacturer. It must be done that way because
a coupon will often be usable for a whole family of products.
For example, a coupon might be good for four different kinds of
soap made by the same manufacturer. In the same way, the value code
represents the value of the coupon arbitrarily. The manufacturer
sends the retailer the data that tells the retailer's computer
exactly which products fit the family code, and exactly how much to
take off. When the coupon is scanned, the POS computer:

1.) Decodes the family code
2.) Checks to make sure the customer purchased an item from the family
3.) Decodes the value code
4.) Sends the discount back to the cash register
===========================================================================

===========================================================================
INCODING A BARCODE:

So let's say you would like to incode the actual bars in the bar code and
map them to numbers.This is something that will make you cross-eyed, but
it can be done. First of all, look at any 12-digit bar code. It is made
up of black bars and white spaces between the bars. Assume that the
thinnest bar or space that you see (for example, the first bar on the left)
can be called "one unit wide." The bars and spaces can therefore be seen to
have proportional widths of one, two, three or four units. If you look
at any bar code you can see examples of these four widths.
The start of any bar code is "1-1-1." That is, starting at the left you
find a one-unit-wide black bar followed by a one-unit-wide white space
followed by a one-unit-wide black bar (bar-space-bar). Following the
start code, the digits are encoded like this:

0 = 3-2-1-1
1 = 2-2-2-1
2 = 2-1-2-2
3 = 1-4-1-1
4 = 1-1-3-2
5 = 1-2-3-1
6 = 1-1-1-4
7 = 1-3-1-2
8 = 1-2-1-3
9 = 3-1-1-2

(Something to notice: All of these encodings seem to add up to 7.)

So let's take this barcode as an example:

043000181706:

-The bar code starts with the standard start code of 1-1-1 (bar-space-bar).
-The zero is 3-2-1-1 (space-bar-space-bar).
-The four is 1-1-3-2 (space-bar-space-bar).
-The three is 1-4-1-1 (space-bar-space-bar).
-The next three zeros are 3-2-1-1 (space-bar-space-bar).
-In the middle there is a standard 1-1-1-1-1 (space-bar-space-bar-space),
which is important because it means the numbers on the right are
optically inverted!
-The one is 2-2-2-1 (bar-space-bar-space).
-The eight is 1-2-1-3 (bar-space-bar-space).
-The one is 2-2-2-1 (bar-space-bar-space).
-The seven is 1-3-1-2 (bar-space-bar-space).
-The zero is 3-2-1-1 (bar-space-bar-space).
-The six is 1-1-1-4 (bar-space-bar-space).
-The stop character is a 1-1-1 (bar-space-bar).

===========================================================================

===========================================================================
SOME OF WHAT OUR POS NEEDS TO DO:

-Handle coupons
-Handle pricing
===========================================================================

This should be what we need. We will have to check into the manufacturur id.
Im not sure if that would be something we have to use or not.

Pablo
QuestionE-Mail From VB.Net Pin
Polymorpher6-Dec-05 18:03
Polymorpher6-Dec-05 18:03 
AnswerRe: E-Mail From VB.Net Pin
Dave Kreskowiak6-Dec-05 18:27
mveDave Kreskowiak6-Dec-05 18:27 
GeneralRe: E-Mail From VB.Net Pin
Polymorpher7-Dec-05 9:26
Polymorpher7-Dec-05 9:26 
Questionexport datagrid to MS WORD Pin
sreejaps6-Dec-05 17:38
sreejaps6-Dec-05 17:38 
AnswerRe: export datagrid to MS WORD Pin
uktrips0079-Dec-05 19:44
uktrips0079-Dec-05 19:44 
Questioncrystal report Pin
farhha6-Dec-05 15:28
farhha6-Dec-05 15:28 
AnswerRe: crystal report Pin
Steve Pullan6-Dec-05 17:06
Steve Pullan6-Dec-05 17:06 
QuestionHow to start an existing windows service programaticallly Pin
amigo_rk6-Dec-05 15:26
amigo_rk6-Dec-05 15:26 
AnswerRe: How to start an existing windows service programaticallly Pin
Dave Kreskowiak6-Dec-05 18:25
mveDave Kreskowiak6-Dec-05 18:25 
GeneralRe: How to start an existing windows service programaticallly Pin
amigo_rk7-Dec-05 2:07
amigo_rk7-Dec-05 2:07 
GeneralRe: How to start an existing windows service programaticallly Pin
Dave Kreskowiak7-Dec-05 2:32
mveDave Kreskowiak7-Dec-05 2:32 
Questionvbkeydelete got disable Pin
icDavid6-Dec-05 11:07
icDavid6-Dec-05 11:07 
QuestionProblem with "Cannot create ActiveX component" Pin
Doug Goulden6-Dec-05 11:05
Doug Goulden6-Dec-05 11:05 
Questioncombobox and datagrid need help Pin
AdeshSharma6-Dec-05 6:52
AdeshSharma6-Dec-05 6:52 
AnswerRe: combobox and datagrid need help Pin
dptalt7-Dec-05 2:13
dptalt7-Dec-05 2:13 
AnswerRe: combobox and datagrid need help Pin
AdeshSharma8-Dec-05 3:11
AdeshSharma8-Dec-05 3:11 
Questionbutton doesn't work as expected Pin
mattlove6-Dec-05 6:40
mattlove6-Dec-05 6:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.