PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French 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:
  • AndroidAndroid Widget iPhone/iPad All barcodes managed by the system can be decoded.
Caution: The barcode must cover a sufficient portion of the HEX@ image and have sufficient contrast and sharpness for decoding to occur.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
New in version 23
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Example
Windows Mobile
// Decode a QR Code from a Camera control
s is Buffer
s = dSaveImageBMP(CAM_NoName1, inMemory)
bc is BarCode
bc = BCDecode(s)
SI ErrorDetected = False _ET_ cb.TypeBarCode = CB_QRCODE
_ET_ cb.TypeContentContent = bcTypeEmail THEN
    Info("Email address: "+ cb.Contenu)
END
Syntax
<Result> = BCDecode(<Image>)
<Result>: BarCode variable
BarCode variable initialized with the information read in the bar code.
<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:

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 in the bar code. 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 the mContact structure will be automatically filled with the values read in the bar code.
bcTypeLocationgeoPosition variable.
The Latitude and Longitude properties of the Variable will be automatically filled with the values read from the barcode.
Component : wd260barc.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment