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:
- the ErrorOccurred variable,

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 content | Type of value (..Content) | Remark |
---|
bcTypeText | Character string | Example: "WINDEV is great!" |
bcTypePhone | Character string | Example: "0612345678" |
bcTypeSMS | Character 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" |
bcTypeURL | Character string | Example: "http://www.google.com" |
bcTypeMarket | Character string | Example: "market://search?q=pname:com.company.application" |
bcTypeWiFi | Character string | Character string in the following format: <SSID> + TAB + <Security protocol>+ TAB + <Key> Example: "MyNetwork<TAB>WPA<TAB>pwd" |
bcTypeEmail | Character string | Example: "name@email.com" |
bcTypeContact | Empty. The members of the mContact structure will be automatically filled with the values read in the bar code.
| |
bcTypeLocation | geoPosition variable. The Latitude and Longitude properties of the Variable will be automatically filled with the values read from the barcode. | |
Component : wd260barc.dll