Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if error is in baseclass or subclass
Message
 
 
À
21/12/2007 11:06:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01277002
Message ID:
01277003
Vues:
15
>How do you know where in the inheritance chain an error is occurring at runtime?
>
>ASTACKINFO shows the procedure as that of the instance called.
>PEMSTATUS(oObjectName , cMethod, 6) says that the method is Inherited; not whether the sub-class has it's own code, or which is running.
>PEMSTATUS(oObjectName , cMethod, 0) only detects 'Changed' for properties only.
>ACLASS( ) will provide only the object's ancestor class names.
>GETPEM() is design time only.
>
>What am I missing?

Frank,

You may have particular line of code that gives the error (check all ASTACKINFO array, LINENO() - not necessary available). Would it be enough to find the source of error?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform