Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets input mode.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Barcode 8.1 Yes Yes Yes Yes Yes

MBS( "Barcode.SetInputMode"; Mode )


Parameter Description Example value
Mode The new input mode. "GS1"


Returns OK or error.


Sets input mode.
Mode can be empty for default.
Values include data, unicode, GS1, Kanji or SJIS.


Set input mode for ASCII or data:

// Uses full ASCII range interpreted as Latin-1 or binary data.

MBS( "Barcode.SetInputMode"; "Data" )

Set input mode for Unicode:

// Uses pre-formatted UTF-8 input.
MBS( "Barcode.SetInputMode"; "Unicode" )

Set input mode for GS1:

// Encodes GS1 data using FNC1 characters.

MBS( "Barcode.SetInputMode"; "GS1" )

Encode Data Matrix with GS1:

Feldwert setzen [ Barcode Generation::Image ; "" ]
Variable setzen [ $r ; Wert: MBS( "Barcode.SetInputMode"; "GS1" ) ]
Variable setzen [ $img ; Wert: MBS("Barcode.Generate"; "DataMatrix"; "[01]98898765432106[3202]012345[15]991231") ]
Wenn [ MBS("IsError") = 0 ]
    Feldwert setzen [ Barcode Generation::Image ; MBS( "GMImage.WriteToPNGContainer"; $img; "barcode.png") ]
    Variable setzen [ $r ; Wert: MBS( "GMImage.Destroy"; $img ) ]
Ende (wenn)

See also

Barcode.ISBNChecksum   -   Barcode.SetOption

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins