Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Error event set ERROR() value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
BUG: Error event set ERROR() value
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01025752
Message ID:
01025752
Vues:
62
ERROR() Help say:

An ON ERROR routine must be active for ERROR( ) to return a value other than 0.


Then:
ON ERROR 
=CREATEOBJECT("mClass")

DEFINE CLASS mClass AS Custom
	PROCEDURE Init
		='a'+1
		
	PROCEDURE Error
	LPARAMETERS nError, cMethod, nLine
	? "expected 0",ERROR()
	
ENDDEFINE
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform