PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Manipulating a Bar Code control programmatically
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to manipulate a Bar Code control programmatically. 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.
For example:
  • direct assignment:
    BAC_BarCodeControl = "123456789"
  • assignment by variable:
    BAC_BarCodeControl = Products.BarCode
Versions 16 and later
Case of QR Code bar codes:
To display a QR code in a Bar Code control, you can use a variable of type BarCode.
New in version 16
Case of QR Code bar codes:
To display a QR code in a Bar Code control, you can use a variable of type BarCode.
Case of QR Code bar codes:
To display a QR code in a Bar Code control, you can use a variable of type BarCode.
Remark: In a window or a page, if the control is associated with a data file item, the entered value is automatically retrieved via ScreenToFile or PageToFile. For more details, see Binding Bar Code controls to items.
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 manipulate a Bar Code control programmatically.
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.


For a complete 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