Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong?
Message
 
To
01/10/2004 06:51:09
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00947862
Message ID:
00947876
Views:
13
Why You not try this instead:
o=Createobject('MyClass')

Define Class MyClass As Custom
	Function Init
        LOCAL mKey
	Do While .t.
	   ? Datetime()
	   mKey=Inkey(1)
           IF INLIST(mKey, 27, 97, 104) && Esc, Ctrl+F4, Alt+F4
              EXIT
           ENDIF     
	EndDo
EndDefine





>Can anybody tell me what's wrong with this code? Or, can anybody suggest a workaround?
>
><pre>
>x=.T.
>On Shutdown x=.F.
>
>o=Createobject('MyClass')
>
>Define Class MyClass As Custom
>	Function Init
>	Do While x
>		? Datetime()
>		=Inkey(1)
>	EndDo
>EndDefine
>
>
>In either development time or run time, when we try to close the application, VFP crashes!
>
>TIA
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform