Screen Initialise

Set the first questions to appear when the app loads.

Step 1

When the app begins, have the first question appear in the QuestionLabel you created earlier.

Open the Screen1 drawer and drag out the when Screen1.Initialize block.

Go to the QuestionLabel drawer and find the set QuestionLabel.Text block.

Snap it to this event block

Step 2

You could copy the Text block containing the first question, but if you change your quiz later, you would have to reprogram this code. 

Instead, find the select list item block. Program it to select from the QuestionList Variable and begin at Index “1”. 

Step 3

Reset the connection between the phone and the laptop to test this code. Close the app on the phone. Choose Connect > Reset Connection from the top menu, then Connect > AI Companion to re-connect. 

The first question will now appear on the screen!