Article ID: 195533
Article Last Modified on 8/12/1999
**********Server Code*******************
DEFINE CLASS Test1 AS CUSTOM OLEPUBLIC
PROCEDURE retapp
RETURN THIS.APPLICATION
ENDPROC
PROCEDURE retapp2
RETURN _VFP.APPLICATION
ENDPROC
ENDDEFINE
**********End Server Code***************
**********Begin Client Code************
oX=CREATEOBJECT("SERVTEST.TEST1")
oY=oX.retapp &&Works
oZ=oX.retapp2 &&Works
?oY.Name
?oZ.Name
?oX.Application.Name &&Errors Occur
*********End Client Code***************
The first two references work because they access the application object
from within the instance of the object through a method and return the
result to the client.
Keywords: kbinfo KB195533