SSCCChecksum ( SSCCnr )
Rate this function: Average rating: 3.6 (8 votes) Discuss this Custom Function
Andy Knasinski, NRG Software, LLC.
http://www.nrgosft.com
Creates a checksum for SSCC number
Sample Input:
| SSCCChecksum ( 0008155380999900001 ) |
|
Sample Output:
|
Description:
This script is used to compute a checksum for a given SSCC number. You can also produce a nice text representation using this calc. Works great with Brian Dunning's Code128 solution.
"(" &
Left ( $$sscc ; 2 ) &
") " &
Middle ( $$sscc ; 3; 1 ) &
" " &
Middle ( $$sscc ; 4 ; 7 ) &
" " &
Middle ( $$sscc ; 11 ; 9 ) &
" " &
Right ( $$sscc ; 1 )
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
CountWordOccurrences ( text ; searchWord ) |
| |
(Tue, Feb 07, 11:15am) |
| 2. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 3. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 4. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 5. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 6. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 7. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 8. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
 |
|
Hey Andy!
Thanks for a this useful function. I made a little correction, because when the value of checksum gets 10, it should be 0. not 10. Right?
Case ( xDigit = 10 ; xPool & "0" ; xPool & xDigit )
H. Lithman, Sweden
March 15, 2011 3:50pm