Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting up appication objects
Message
 
À
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:
00751391
Vues:
18
Hi Gerry.

Thsnks for your reply.

Does it matter where I use this code in My App or where I call it from.

i.e. Does it have to be set up in the top most prg program ?

Regards,

Gerard


>>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