Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Sets input mode.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Barcode | 8.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Mode | The new input mode. | "GS1" |
Returns OK or error.
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:
Set Field [ Barcode Generation::Image ; "" ]
Set Variable [ $r ; Value: MBS( "Barcode.SetInputMode"; "GS1" ) ]
Set Variable [ $img ; Value: MBS("Barcode.Generate"; "DataMatrix"; "[01]98898765432106[3202]012345[15]991231") ]
If [ MBS("IsError") = 0 ]
Set Field [ Barcode Generation::Image ; MBS( "GMImage.WriteToPNGContainer"; $img; "barcode.png") ]
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $img ) ]
End If
Created 23th February 2018, last changed 21st December 2018
Barcode.Scan - Barcode.SetOption
Feedback: Report problem or ask question.