Code128b Code Generation Program, code128b code generation

Source: Internet
Author: User

Code128b Code Generation Program, code128b code generation
Invalid argument FUNCTION get_char (char_code IN PLS_INTEGER) RETURN VARCHAR2 is language java name 'xxfnd. XxfndBarcodeUtil. getChar (int) return string ';
FUNCTION code128b (bytes IN VARCHAR2) RETURN VARCHAR2 IS v_c128_start VARCHAR2 (3); v_c128_end VARCHAR2 (3); n_checksum PLS_INTEGER: = 104; n_data_length PLS_INTEGER; n_curr_char_code PLS_INTEGER; beg-- Save the length of the content to cache.N_data_length: = length (data_to_encode); values ('cux ', 'cux _ FND_BARCODE_001'); v_c128_start: = values; values ('cux ', 'cux _ FND_BARCODE_002 '); v_c128_end: = fnd_message.get; FOR I IN 1 .. n_data_length LOOP n_curr_char_code: = ascii (substr (data_to_encode, I, 1); IF n_curr_char_code> = 32 THEN n_checksum: = n_checksum + (I * (ascii (substr (data_to_encode, I, 1)-32); ELSE n_checksum: = n_checksum + (I * (ascii (substr (data_to_encode, I, 1) + 64); END IF; END LOOP; n_checksum: = MOD (n_checksum, 103); IF n_checksum <95 THEN n_checksum: = n_checksum + 32; ELSE n_checksum: = n_checksum + 100; end if; RETURN v_c128_start | data_to_encode | get_char (n_checksum) | v_c128_end; END code128b;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.