I'm glad it worked for you. The reference in help is the local command but I got this tip from a conference somewhere.
>Hi James,
>
>Interesting, I wasn't aware of this, it works fine. Thanks.
>BTW, do you happen to know if this is documented in VFP9 help, I couldn't find it?
>
>
>
>>Zakaria,
>>
>>I add this at the top of each of my "define class ..."
>>
>>
>>#if .f.
>>local this as <your class> of <class location>
>>#endif
>>
>>
>>>Hi All,
>>>
>>>Foxpro intellisense is called "unique and vast" in comparison to other programming languages (stated by many experienced UT members). But I don't see its uniqueness or vastness, in contrary I think that Foxpro Intellisense has some major shortcomings. I find the most annoying thing that when working with (program) subclasses that I can't get the properties and methods of its parentclasses. For example:
>>>
>>>
>>>
>>>
>>>*** Creator of the coverages
>>>DEFINE CLASS AbstractCreator as Custom
>>>
>>>oCoverages = null
>>>
>>>FUNCTION init ()
>>> this.oCoverages = NEWOBJECT("Collection")
>>> this.CreateCoverages()
>>>ENDFUNC
>>>
>>>*abstract function*
>>>FUNCTION CreateCoverages()
>>>
>>>ENDDEFINE
>>>
>>>
>>>DEFINE CLASS ConcreteCreator as AbstractCreator
>>>
>>>FUNCTION CreateCoverages()
>>> oLife = CREATEOBJECT("LifeCoverage")
>>> this.oCoverages.Add(oLife)
>>>** After typing "this", I want intellisense to pop up
>>>** and showing the parent properties and methods, but unfortunately...
>>>ENDFUNC
>>>
>>>ENDDEFINE
>>>
>>>
>>>How are you dealing with this? I can't imagine that you take these things for granted...
>>>
>>>Thanks beforehand.