It's really the same thing we were discussing, but he is doing it in the init. He has a method 'IAmAlone' in the object and it contains code to check for another instance of it, and will instantiate it if not.
Alan
>>>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