Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if error is in baseclass or subclass
Message
From
21/12/2007 17:37:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01277002
Message ID:
01277110
Views:
20
Sergey,

That worked!
I completely missed the option of passing in the class name as the first parameter.
It makes me wonder how FoxPro knows which VCX to reference.
I guess you can have only one class of a given name loaded into memory at at time, is that right? Humm...

Thank you once again,
Happy Holidays!
- Frank

>Frank,
>
>Did you try
>
>lcCode = GETPEM(oObject.class, "SomeMethod")
>
>?
>
>>
>>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.
>
>--sb--
>MVP VFP
>VFP Tips, tricks and code
Thank you,
- Frank
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform