PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Displaying a bar code in a Bar Code control
  • Displaying a bar code in a Bar Code control
  • Retrieving the value of the bar code displayed in the Bar Code control
  • Properties specific to the Bar Code controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Handling a Bar Code control by programming
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to handle a Bar Code control by programming. To do so, use the variable of the Bar Code control in the code.
The variable of the Bar Code control corresponds to the name of the Bar Code control. This variable is a text variable.
WINDEV Mobile The Bar Code control can be handled by programming in the report editor only.
Windows Mobile The Bar Code control can be handled by programming in the report editor only.
Versions 17 and later
iPhone/iPad The Bar Code control can now be handled by programming in the iPhone/iPad applications.
New in version 17
iPhone/iPad The Bar Code control can now be handled by programming in the iPhone/iPad applications.
iPhone/iPad The Bar Code control can now be handled by programming in the iPhone/iPad applications.
Versions 18 and later
iPhone/iPad This type of control is now available for the reports in the iPhone/iPad applications.
New in version 18
iPhone/iPad This type of control is now available for the reports in the iPhone/iPad applications.
iPhone/iPad This type of control is now available for the reports in the iPhone/iPad applications.
Versions 20 and later
Universal Windows 10 App This type of control is now available in Windows Store apps mode.
New in version 20
Universal Windows 10 App This type of control is now available in Windows Store apps mode.
Universal Windows 10 App This type of control is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This type of control is now available for the windows and reports found in the applications in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of control is now available for the windows and reports found in the applications in Universal Windows 10 App mode.
Universal Windows 10 App This type of control is now available for the windows and reports found in the applications in Universal Windows 10 App mode.
Versions 22 and later
Android This type of control is now available for Android applications.
New in version 22
Android This type of control is now available for Android applications.
Android This type of control is now available for Android applications.
Displaying a bar code in a Bar Code control

Displaying a bar code in a Bar Code control

To display a bar code in a Bar Code control, a simple assignment is sufficient.
Some examples:
  • direct assignment:
    BCOD_BarCodeControl = "123456789"
  • assignment by variable:
    BCOD_BarCodeControl = Products.BarCode
Versions 16 and later
Case of QR Code bar codes:
To display a QR Code bar code in a Bar Code control, you have the ability to use a BarCodes variable.
AndroidiPhone/iPad For example:
// Decode a QR Code bar code
MyQRCode is BarCodes
MyQRCode = BCCapture()
IF ErrorOccurred = False THEN
BCOD_MyBarCodeControl = MyQRCode
END
New in version 16
Case of QR Code bar codes:
To display a QR Code bar code in a Bar Code control, you have the ability to use a BarCodes variable.
AndroidiPhone/iPad For example:
// Decode a QR Code bar code
MyQRCode is BarCodes
MyQRCode = BCCapture()
IF ErrorOccurred = False THEN
BCOD_MyBarCodeControl = MyQRCode
END
Case of QR Code bar codes:
To display a QR Code bar code in a Bar Code control, you have the ability to use a BarCodes variable.
AndroidiPhone/iPad For example:
// Decode a QR Code bar code
MyQRCode is BarCodes
MyQRCode = BCCapture()
IF ErrorOccurred = False THEN
BCOD_MyBarCodeControl = MyQRCode
END
Remark: In a window or in a page, if the control is associated with an item found in a data file, the entered value is automatically retrieved by using ScreenToFile or PageToFile. See Linking a Bar Code control to an item for more details.
Retrieving the value of the bar code displayed in the Bar Code control
Universal Windows 10 App To retrieve the value of the bar code displayed in a Bar Code control:
  • perform a simple assignment.
    For example:
    BarCodeValue = BCOD_BarCodeControl
  • retrieve part of the value.
    For example:
    BeginningBarCode = Left(BCOD_BarCodeControl, 3)
  • use ..Value.
Remark: If the control is associated with a file item, the value typed is automatically retrieved by using ScreenToFile. See Linking a Bar Code control to an item for more details.
Properties specific to the Bar Code controls
The following properties are used to manage a Bar Code control by programming.
HorizontalAlignmentAllows you to find out and modify the horizontal alignment of a Bar Code control.
VerticalAlignmentAllows you to find out and modify the vertical alignment of a Bar Code control.
DndTargetAllows you to find out and modify the behavior of the target control during Drag and Drop.
DndSourceAllows you to find out and modify the behavior of the source control during Drag and Drop.


To find out the entire list of WLanguage properties that can be used with a Bar Code control, see Properties associated with a Bar Code control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment