Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non visual classes
Message
From
11/08/1999 17:29:20
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00252749
Message ID:
00252752
Views:
10
>I want to create a custom (non-visual) Client class to store property values that I can have access to and change as a new client is selected. I am creating the Client class in my main.prg with the following:
>
>DEFINE CLASS Client AS Custom
> Name = 'Company 1'
> CompanyId = '1'
> DataPath = 'e:\mrs\data\'
>ENDDEFINE
>
>However, now my main.prg will not execute passed this when I run it. Am I doing something wrong, or should I just be putting it someplace else?
>
>Thanks for any help...

Just put this at the very end of your code. This isn't really "executable" code, it just needs to be present for the CREATOBJECT function to know it exists.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform