QRCode

From NSB App Studio
Jump to navigation Jump to search

Description

The QRCode control is used to display a QR Code. QR Codes are widely used to make scannable web links, but have other uses as well.

To add an image to your app, choose the QRCode icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the button: usually, just onclick.

QRCode defaults to 115 x 115 pixels, but can be made larger.

QR Code uses the soldair/node-qrcode library.

Properties

Standard properties are supported, plus:

value The text to be converted to a QR Code. Can be a URL or any other text string.

Events

Standard events are supported.

Example (Basic)

Function QRCode1_onclick()
  Msgbox "Click!"
End Function

To change a QRCode at runtime, use

QRCode1.setValue(Input1.value)

Example (JavaScript)

//Image Example
Image1.onclick= function() {
  alert("Click!");
}

To change an image at runtime, use

QRCode1.setValue(Input1.value);

Output

Related Items

PictureBox