Skip to content
Advertisement

Type Mismatch, Required: Context, Found: unit

I’m trying to setup a simple database and part of my code is throwing off this error, which im not really sure of how to fix, the line in particular is the following:

JavaScript

Which yields: Type Mismatch, Required: Context, Found: unit!

What should I do to fix this?

Whole code:

JavaScript

Advertisement

Answer

As per your error, the method needs context and you are passing a method to it. Try to pass context as below –

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement