Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods are in a class?
Message
From
04/02/2002 10:01:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00614739
Message ID:
00614797
Views:
18
>>Hello
>>
>>I try to accomplish the following:
>>
>>Having a VCX library, and the name of a class, how can I get an array of all methods of this class without instantiating it?
>>AMEMBERS() works only on objects or VFP classes (base classes).
>>
>>How does the class display all members of a class, even if the class is open and the record in the VCX file is locked? I try to get this information for reporting purposes, but try to avoid scanning through the VCX file.
>
>AFAIK, you can not without writing code to parse the file. You can use AVCXClasses() functions to get an array of all the class names in the VCX. Then use AMEMBERS() to get the PEMs, but you have to instanciate the classes to get those. You do not have to instanciate to use AVCXClasses.

This wouldn't be such a problem, except that the classes may have unexpected behavior if you initialize them.
I will need to continue using the VCX file (as table) and to avoid having records locked.
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform