Having problem reading from file

For some reason, I am unable to load data from my file when the internet is not connected. Here is the code:

What is your responseCode when not online?

I'm getting this error. For some reason, it's still searching the url.

you will have to use the Screen.ErrorOccurred event, catch that error and load your file from the assets there

1 Like

I'm new to app inventor, could you please help me with this?

find the ErrorOccurred event in the Screen drawer and move these blocks inside
also the showNextQuestion procedure you should move into the File.GotText event to call that procedure after the file has been read

This is what im getting:

fix your showNextQuestion procedure

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.