Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM Object Help

Status
Not open for further replies.

FoxWing

Programmer
Dec 20, 2004
44
GB
I'm writting a COM object and i come across that i can't define setting at the Class level

DEFINE CLASS C24x7 AS SESSION OLEPUBLIC

SET DATE TO BRITISH <----- error


DBPATH='c:\VisDev\Figures\Data'
p_lstdte={31/12/2100}
p_comp="001"


FUNCTION ...

ENDFUNC


ENDDEFINE



How can i do define my setting in my COM Object ?

Please help.
 
Try this
Code:
DEFINE CLASS C24x7  AS SESSION OLEPUBLIC
[B]    PROCEDURE init    
    SET DATE TO BRITISH   
    ENDPROC    [/B]

    DBPATH='c:\VisDev\Figures\Data'
    p_lstdte={31/12/2100}
    p_comp="001"


    FUNCTION ...
   
    ENDFUNC
ENDDEFINE


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
See the difference?

These are just definitions and (at the same time) settings of properties:
DBPATH='c:\VisDev\Figures\Data'
p_lstdte={31/12/2100}
p_comp="001"

This is code and must be in a procedure (method):
SET DATE TO BRITISH

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top