Article ID: 143303
Article Last Modified on 9/30/2003
ON KEY LABEL F5 ?MESSAGEBOX("Hello World")
FOR i = 1 TO 1000000
ENDFOR
To support this behavior, Visual FoxPro calls the Application Program
Interface (API) PeekMessage() between each execution of a command. In the
previous case, Visual FoxPro calls PeekMessage between the FOR command and
the ENDFOR command. Visual FoxPro also calls PeekMessage() when it is
executing a query or indexing a big table because users may press the ESC
key to interrupt and halt the command. If Visual FoxPro didn't call
PeekMessage, it wouldn't see the key until it's too late.
THIS.Additem('Apples')
THIS.Additem('Oranges')
THIS.Additem('Bananas')
THIS.Additem('Lemons')
THIS.Indent(2)=2
*MouseDown
=MESSAGEBOX("This is the MouseDown event")
*Click
=MESSAGEBOX("This is the Click event")
ACTIVATE SCREEN FOR i=1 TO 1000 ?i ENDFOR
Additional query words: ActiveX OCX
Keywords: KB143303