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.
  • Error management
  • Decoding QRCode
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
Decodes information stored in a barcode. This bar code is contained in an image (image displayed in an Image control, file of an image or image in memory).
The type of decoded barcodes depends on the execution platform:
  • WindowsLinux Only QR Code can be decoded.
Caution: The barcode must cover a sufficient portion of the source Image and be of sufficient contrast and sharpness for decoding.
Versions 17 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for Linux applications and sites.
New in version 17
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for Linux applications and sites.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Linux This function is now available for Linux applications and sites.
Example
Syntax
<Result> = BCDecode(<Image>)
<Result>: BarCode variable
Variable of type BarCode initialized with the information read from the barcode.
<Image>: Character string (with or without quotes)
Image of bar code to decode. This parameter can correspond to:
Remarks

Error management

To find out whether the retrieval failed, use:
  • the ErrorOccurred variable,
  • WindowsLinux or the Property TypeCodeBarre of the Variable BarCode. If this property differs from BC_QRCODE, the bar code was not detected or decoded.

Decoding QRCode

The following array shows the correspondence between the Property TypeContent and the Property Content of the Variable BarCode:
Type of contentType of value (..Content)Remark
bcTypeTextCharacter stringExample: "WINDEV is great!"
bcTypePhoneCharacter stringExample: "0612345678"
bcTypeSMSCharacter string
The members of the SMS structure (SMS.Message and SMS.Number) will be automatically filled with the values read from the barcode. The content will correspond to a string in the following format: <Number> + CR + <Message>
Example: "0612345678<CR>Text to send"
bcTypeURLCharacter stringExample: "http://www.google.com"
bcTypeMarketCharacter stringExample: "market://search?q=pname:com.company.application"
bcTypeWiFiCharacter stringCharacter string in the following format:
<SSID> + TAB + <Security protocol>+ TAB + <Key>
Example: "MyNetwork<TAB>WPA<TAB>pwd"
bcTypeEmailCharacter stringExample: "name@email.com"
bcTypeContactEmpty.
The members of mContact structure will be automatically filled with the values read in the barcode.
bcTypeLocationgeoPosition variable.
The Latitude and Longitude properties of the variable will be automatically filled with the values read in the barcode.
Component: wd260barc.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment