Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non visual classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00252749
Message ID:
00252851
Views:
9
>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...

In addition to what George said, I would suggest putting a type prefix on the front of your properties: 'c' for character, 'n' for numeric - this would eliminate the problem of using reserved words.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform