Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Session OlePublic
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00899482
Message ID:
00899485
Views:
12
Rex,

You've to use THIS when referencing class methods or properties from within it. See corrections in the code below.

>Can you use a PROCEDURE from the INIT of a CLASS? IE:
>DEFINE CLASS test AS SESSION OLEPUBLIC
>
>     cTempDir = ""
>
>     PROCEDURE INIT
>          This.cTempDir = This.GETTempDir()
>     ENDPROC
>
>     HIDDEN PROCEDURE GetTempDir
>          RETURN "C:\Temp"
>     ENDPROC
>
>ENDDEFINE
>I am gettting a OLE error code 0x80004005: Unspicified error.
>If I remove the line I do not get the error
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform