Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting up appication objects
Message
De
09/02/2003 19:22:25
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00751147
Message ID:
00751233
Vues:
20
>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   
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform