PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • 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:
// Décodage d'un QR Code présent dans un champ Image
cb is BarCode
cb = BCDecode(IMG_CodeBarres)
IF ErrorOccurred = False _AND_ cb.TypeBarCode = BC_QRCODE ...
_AND_ cb.ContentType = bcTypeEmail THEN
Info("Adresse email: " + cb.Content)
END
Reading a bar code in an Android application
Reading a bar code in an iPhone/iPad application
Related Examples:
The Bar Code control Unit examples (WINDEV): The Bar Code control
[ + ] Using a Bar Code control
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment