Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong?
Message
 
À
01/10/2004 06:51:09
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00947862
Message ID:
00947876
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform