Migration problems

It seems that previous working projects with Appstudio 5.2 do not completely work with Appstudio 8.
When I run the project I get some Reference errors, regarding code.js (e.g., ReferenceError: Can’t find variable: RGB).
Below the line of code I am referring to:

Does anyone know how to solve this?

Thanks in advance.

In the Release History for new version of AppStudio, we document “Breaking Changes”:

We document changes to AppStudio which could cause errors in your app.

In your case, it looks like you are using a BASIC function in a JavaScript project. In Version 7, we stopped including the BASIC library in JavaScript projects. This saved some space. You can turn it back on here:

Screen Shot 2020-04-11 at 1.08.24 PM

Share your story with the AppStudio Community! Quarantine Stories

Thank you for your prompt reply!