Implicit declared Form variable containing the currently active form.
Set Me = frm
Set frm = Me
Me.[property | method]
frm:Form object
Me, at all times, holds the currently active Form object. When all forms are closed Me = Nothing. Me is often used in the main message loop to test for a valid Form object. As long as Me contains a valid object messages should be processed and the loop must continue.
OpenW 1
Print "Me = "; Me.Name
OpenW 2
Print "Me = "; Me.Name
Do
Sleep
Loop Until IsNothing(Me)
In GFA-BASIC 32 the message loop must be inserted explicitly. The Sleep command is responsible for retrieving the messages from the queue and for dispatching them to the Forms and OCX controls. The example above shows a minimal application.
Form, LoadForm, OpenW, Sleep, Ocx
{Created by Sjouke Hamstra; Last updated: 16/10/2014 by James Gaite}