Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does a DEFINE CLASS... class exist?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00787527
Message ID:
00790894
Views:
22
>Hi Fred,
>
>Problem is the class I'm looking for is being created in code with a DEFINE CLASS command.
>
>APROCINFO() is limited to finding functions and procedures contained in a procedure library (.prg) file. I already know that the procedure library in fact contains the function that contains the DEFINE CLASS command.
>
>What I need to know is, after I run the DEFINE CLASS command, did the class actually get defined? VFP has this nasty problem of NOT defining the class, yet NOT throwing an error of any kind.
>
>Right now I'm trapping for errors during the DEFINE CLASS call that would indicate the class failed to define, but this approach is not at all certain. Whatever I do has to work at run-time.
>
>Regards,

You can define your class in a PROCEDURE FILE
DEFINE CLASS subform as form
,,,,,
ENDDEF
When you: SET PROCEDURE TO MyProcedurePRG ADDITIVE, the class is instanciated and available for use. HTH
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform