Hi Chad, thanks for the clarification!
>David,
>
>You can't release properties of objects with the RELEASE command. Setting the property to null as you have done will release the object (assuming nothing else is holding a reference to it). So, what you have below is correct. Just delete the line that you have commented out.
>
>HTH,
>Chad
>
>>Hi all, I define a class below to do some basic directory management. The release line in the destroy method does not compile. Any idea? Thanks!
>>
>>define class CDir as custom
>> hidden sDir
>> hidden oShell
>> sDir= ""
>> oShell= .null.
>> function init
>> this.sDir= sys(5)+sys(2003)
>> this.oShell= createobject('WScript.Shell')
>> function destroy
>> cd (this.sDir)
>>
>> this.oShell= .null.
>> function MyDocuments
>> cd (this.oShell.SpecialFolders("MyDocuments"))
>>enddef
>>