AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones de códigos de barras
  • Handling errors
  • Decoding QRCode
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Decodes the information contained in a bar code. 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 bar code to be decoded depends on the execution platform:
  • WindowsLinux Only QR Codes can be decoded.
Attention The strikethrough code must cover a sufficiently large area of the source image, with sufficient contrast and sharpness for decoding.
Ejemplo
Sintaxis
<Result> = BCDecode(<Image>)
<Result>: BarCode variable
BarCode variable initialized with the information read in the bar code.
<Image>: Character string
Image of bar code to decode. This parameter can correspond to:
Observaciones

Handling errors

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

Decoding QRCode

The table below presents the relationship between the TypeContent and Content properties of the BarCode variable:
Type of contentType of value (..Content)Remark
bcTypeTextCharacter stringExample: "WINDEV is great!"
bcTypePhoneCharacter stringExemple: "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 of the form: <Numéro> + RC + <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 in the barcode.
Componente: wd300barc.dll
Versión mínima requerida
  • Versión 16
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local