# SCANCODE

#### Syntax

**SCANCODE**()

#### Remarks

* When the function is called, a popup window is opened in the app. In the popup, the QR or bar code can either be uploaded, added as an image by drag\&drop, or scanned by using the device camera.
* After a successful scan, the function returns the content of the code as a text.
* For a list of all supported codes, please open this [link](https://github.com/mebjas/html5-qrcode?tab=readme-ov-file#supported-code-formats).

#### Example

After a click on the SCANCODE button:

<div align="left"><figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-a3fc3f0ec6345b57c0e8c44efee3ba7665dc0d07%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure></div>

This popup window is opened:

<div align="left"><figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-f4477f7d05a6765d0dcec8b8d9a8671d7988a340%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure></div>

After a successful scan, the Result widget above is filled with the scanned code.
