Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT()
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00446860
Message ID:
00446874
Views:
8
>I have a class that is called RFI_REPORT.
>What I am trying to do is to create an instance of that class.
>
>I did something like this
>
>oREPORT = CREATEOBJECT('RFI_REPORT')
>
>Yet I get a message that says:
>"Class definition RFI_REPORT not found"
>So my question is: Do I need to put something before that line of code?
>Something like a define statement? And if I do, What would It be?

You can use NEWOBJECT() to create the object w/o first setting the classlib to , e.g.
oReport = NEWOBJECT('RFI_REPORT', 'rfi_report_lib')
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform