UCCApplicationIdentifier 関数

Closed説明

Returns a formatted string containing a GS1 (UCC/EAN) Application Identifier.

Closed構文

UCCApplicationIdentifier(String, FormatType, AiSeparatorString)

Where

Closed備考

When using GS1 barcodes in your document, you may need to format a text object with GS1 application identifiers using Visual Basic Script.BarTender allows you to easily format these text objects using the UCCApplicationIdentifier function.This function is commonly used when you want the human readable portion of a barcode to appear above the barcode, or appear on multiple lines.

The following examples show the UCCApplicationIdentifier function in use.Note that Value = should not be included when using single-line expressions.

Value = UCCApplicationIdentifier("01123456789012317021212", btAiParenSpace)

will return the value:

(01) 1 2345678 90123 1 (17) 021212

Value = UCCApplicationIdentifier("01123456789012317021212", btAiParenSpace, vbCr)

will return the value:

(01) 1 2345678 90123 1
(17) 021212

You can also use share names to reference existing data sources.In the following example, a barcode object has a value of 01123456789012317021212; this data source has been assigned the name MyBarCodeString.

Value = UCCApplicationIdentifier(MyBarCodeString, btAiParenSpace, vbCr)

will return the value:

(01) 1 2345678 90123 1
(17) 021212

If the barcode is in any of the GS1 DataBar family of symbologies, you must explicitly include the implied application identifier "01" with or without parentheses or a trailing space in the String parameter.次に例を示します。

Value = UCCApplicationIdentifier("(01) " + MyGS1DataBarBarCode, btAiParenSpace, vbCr)

Some VB string constants like vbCr have an effect only if the text object is configured to be a paragraph in BarTender.