Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReadMethod method
Message
From
29/01/1999 07:58:53
 
 
To
28/01/1999 13:54:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00181447
Message ID:
00181722
Views:
11
>Please, HELP! The ReadMethod method does not seem to work for me.
>
>I have created test library in order to try the reading the code of some methods. The only class in this .VCX is a ReadTest class based on Custom. I have added method JustCode with some useless VFP code just for reading purposes. Plus, I have put some meaningless code in the Init event. But executing code bellow returns empty strings despite existence of the code in both requested methods.
>
>set classlib to readtest
>x = createobject("readtest.readtest")
>messagebox(x.readmethod("init"), "Init Code")
>messagebox(x.readmethod("justcode"), "Custom Method Code")
>
>I have read that ReadMethod works only in Visual Classes. But I have not found any other limitations for it. My class is not programmatic, so I assume ReadMethod should work. But it does not.
>
>Any suggestions?
>TIA.
>Dmitriy Zaslavskiy

Take a look at the GetPem() function, which works with both objects and classes.

Arne
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform