Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Session OlePublic
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00899482
Message ID:
00899485
Vues:
11
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform