Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong?
Message
From
01/10/2004 08:50:26
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00947862
Message ID:
00947898
Views:
14
Thanks for your input and the response of other guys. Please see my reply to Fabio.

KM


>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
Previous
Reply
Map
View

Click here to load this message in the networking platform