>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...
Dan,
In addition to what the others have said, "Name" is a reserved word. Further, when you instantiate the object, it's given the name Client1. If you change this property (I use a "v" prefix), and instantiate it properly, it should work.
George
Ubi caritas et amor, deus ibi est