Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you have Singleton objects in VFP?
Message
From
09/07/2003 11:06:53
 
 
To
09/07/2003 11:04:57
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00808442
Message ID:
00808513
Views:
14
>>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
>
>
>
Jose

You might need to talk me through this, I can't quite see this....

Thanks
Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform