Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if error is in baseclass or subclass
Message
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:
01277087
Vues:
20
Thanks Hugo,

I'm on VFP 8 SP1.
The help file says:
GETPEM( ) Function
Returns the current value for a property or program code for an event or method at design time.

I was hoping to use GETPEM( ) to correlate with the 'Source line contents' provided by ASTACKINFO(); thereby confirming the correct ancestry class.
Experimenting a bit with though I find that at runtime (at least with the Professional Version), it will return the value of properties.
However when attempting to retrieve the contents of a method, it only returns an empty string.

Notwithstanding, by contrast, if I get an object reference to the class via ASELOBJ() at design time, it does indeed return the contents of methods & events.

Thanks,
- Frank

>Frank,
>
>Not sure how GetPem can help you, but I am also not sure why you say is design time only, you can use it at run time too, unless I misunderstanding
>completely, something for what I am very well known for
Thank you,
- Frank
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform