ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Bar Code control
  • 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 Bar Code controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating Bar Code controls programmatically
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to programmatically manipulate Bar Code controls. 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 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, simply assign a value.
For example:
  • direct assignment:
    BAC_BarCodeControl = "123456789"
  • assignment using a variable:
    BAC_BarCodeControl = Products.BarCode
QR Codes:
To display a QR code in a Bar Code control, you can use a variable of type BarCode.
Remark: In a window or page, if the field is associated with a data file item, the value entered is automatically retrieved using the ScreenToFile or PageToFile function.. 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 Bar Code controls
The following properties can be used to programmatically manipulate Bar Code controls.
DndSourceGets and sets the behavior of the source control during a drag-and-drop operation.
DndTargetGets and sets the behavior of the target control during a drag-and-drop operation.
HorizontalAlignmentGets and sets the horizontal alignment of a Bar Code control.
VerticalAlignmentGets and sets the vertical alignment of a Bar Code control.


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

Last update: 09/30/2024

Send a report | Local help