Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you have Singleton objects in VFP?
Message
De
09/07/2003 11:04:57
 
 
À
09/07/2003 09:12:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00808442
Message ID:
00808511
Vues:
12
>Hi
>
>Is this possible from VFP?
>
>Thanks
>Kev

Is the most near I´m from a Singleton Pattern in VFP ;-D
*-- Init Method - pseudo-Singleton
*--
LPARAMETER loMyObject 
loMyObject = .NULL.

loMyObject = THIS.IAmAlone()

IF ISNULL(loMyObject)

ELSE

ENDIF

Quidquid latine dictum sit, altum sonatur

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform