ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Bar Code functions
  • Overview
  • Reading a bar code in a WINDEV application
  • Reading a bar code in a WEBDEV site
  • Reading a bar code in an image
  • Reading a bar code in an Android application
  • Reading a bar code in an iPhone/iPad application
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
Overview
WINDEV, WEBDEV and WINDEV Mobile allow you to create applications for reading bar codes.
Reading a bar code in a WINDEV application
Reading a bar code in a WEBDEV site
WEBDEV - Server code

Reading a bar code in an image

In WEBDEV sites, it is also possible to read the characteristics of a bar code in an image.
To read a bar code found in an image:
  1. Select the image that contains the bar code to decode. This image can be:
    • an image in an Image control.
    • an image file.
    • an image in memory.
  2. Declare a BarCode variable if necessary. The characteristics of the bar code will be saved in this variable.
  3. Use BCDecode to decode the bar code.
Example: Reading a bar code in an Image control:
// Decode a QR Code found in an Image control
bc is BarCode
bc = BCDecode(IMG_BarCode)
IF ErrorOccurred = False _AND_ bc.TypeBarCode = BC_QRCODE ...
_AND_ bc.TypeContent =  bcTypeEmail THEN
Info("Email address: " + bc.Content)
END
Reading a bar code in an Android application
Reading a bar code in an iPhone/iPad application
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help