>I'm trying to make a class to hold variables that I need to be public. I'm a bit confused, though, on how to do it. Here's my main program:
>
>
>PROCEDURE main
>
>PUBLIC goSettings
>
>DEFINE CLASS settings AS CUSTOM
> CurClient = ""
> CurProject = ""
> CurUser = ""
>ENDDEFINE
>
>goSettings = CREATEOBJECT('settings')
>
>ENDPROC
>
>
>When I try to compile it, it stops on the goSettings = line and tells me it's not in a procedure. It looks like it's in a procedure to me. What is it that it's not liking?
>
You can't have an in-line class declaration.