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.
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.
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.
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.
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
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