Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public variables VS objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00795846
Message ID:
00796321
Vues:
11
By the way: I think the solution below is the best option... Any comments?
oObj = CreateObject("Objeto")

Define Class Objeto As Session
    Licenciado = CreateObject("Licenciado")
    Empresa = CreateObject("Empresa")
    Programa = CreateObject("Programa")
EndDefine

Define Class Licenciado As Session
    Nome = "Qualquer Um"
    CNPJ = "Qualquer Outro"
EndDefine

Define Class Empresa As Session
    Nome = "Rodolfo"
    CNPJ = "111.11.11.1.1"
EndDefine

Define Class Programa As Session
    Nome = "Programa"
    Versao = "1.0"
    DataExpiracao = {}
EndDefine
[]s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform