Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if error is in baseclass or subclass
Message
De
21/12/2007 15:23:21
 
 
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:
01277079
Vues:
18
Thank you for your response.
I have an error routine that is specific for the developer.

When an error occurs, the programmer gets the choice of either having the error routine set a breakpoint (thanks for your help on that as well) on the offending line of code, or it activates the command window and via the KEYBOARD command releases the object and issues an EDITSOURCE() to direct them to the problem. I've got all that working, but knowing the level of inheritance at which the activity occurs becomes relevant, so that the breakpoint or EDITSOURCE() can be correctly applied.

Thanks for your attention.
- Frank

>Can I ask why do you need this info?

>>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?
Thank you,
- Frank
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform