Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape a method
Message
From
11/05/2010 02:32:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01464090
Message ID:
01464101
Views:
32
>For canceling by any button you must change calculation methods (call DOEVENTS and test any public canceling flag)
>
>If you use ON ESCAPE... you don't need change calculation method.
>
>OK, examples...
>
>* PROCEDURES
>SET ESCAPE ON
>ON ESCAPE RETURN TO MainProc
>DO MainProc
>SET ESCAPE OFF
>ON ESCAPE 
>
>PROCEDURE MainProc
>?"START"
>=ChildProc()
>?"END"
>
>PROCEDURE ChildProc
>DO WHILE .T.
>   ?TIME()
>ENDDO
>
>
>
>* Methods
>SET ESCAPE ON
>ON ESCAPE RETURN TO MainProc
>loObj=CREATEOBJECT("_test")
>
>loObj.MainProc()
>SET ESCAPE OFF
>ON ESCAPE 
>
>
>DEFINE CLASS _test AS CUSTOM
>PROCEDURE MainProc
>?"START"
>=this.ChildProc()
>?"END"
>
>PROCEDURE ChildProc
>DO WHILE .T.
>   ?TIME()
>ENDDO
>
>ENDDEFINE
>
>
>MartinaJ
>

I will give it a try later.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform