I have an iOS Screen called WinLogin with a boolean Public Property eg isFinishedOpen. From within WinLogin I call a Module Method. Within that Method it has the line:
WinLogin.isFinishedOpen = True
The compile error for this line is: ‘static reference to instance method. Call this on an instance of class WinLogin.WinLogin’.
I have tried defining the iOS Screen using:
Var WinLogin2 As MobileScreen = WinLogin
and passing the iOS Screen as an Object to the Method eg myWinLogin
Var WinLogin3 As WinLogin = MobileScreen(myWinLogin) Var WinLogin4 As WinLogin = WinLogin(myWinLogin)
But these too give compile errors. How can I access an iOS Screen and its properties from within a Module? Do I have to convert my Module Method to a Class?