Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting up appication objects
Message
From
09/02/2003 19:22:25
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00751147
Message ID:
00751233
Views:
16
>I am in the procees of changing some Global variables into application objects and would welcome any ideas on the best way of doing this.
>
>I was proceeeding alomg the following lines:
>

You want your application object to be "portable"; I think sometimes like this would be better.
oMyobj = NEWOBJECT( "My_App", "MYCLASS.PRG" )

*  Put My_App in a separate PRG: eg. MYCLASS.PRG
DEFINE CLASS My_App AS Custom
   MyVar1 = MyVal1
   MyVar2 = MyVal2

   DIMENSION MyVar3[10]
   MyVar3[1] = MyVal3
ENDDEFINE   
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform