Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instance object COM+
Message
From
14/07/2004 17:17:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Instance object COM+
Miscellaneous
Thread ID:
00924400
Message ID:
00924400
Views:
53
Hi all !!

I have this class:

DEFINE CLASS msgcom as Custom OLEPUBLIC

PROCEDURE alerta
LPARAMETERS palerta
return(palerta + "(" + SYS(0) + ")" + DTOC(DATE()) )
ENDPROC

PROCEDURE alerta2
return('code of the object')
ENDPROC

ENDDEFINE

I don't obtain sucess when use the methods. I generated this class as objcom.dll e made the follow command:

ob = createobject("objcom.msgcom") && The object "ob" is created with sucess
ob.alerta('Lazaro') && The error occur: "Syntax error"

What is the problem ?

Thanks by help.

Lázaro Santos.
Next
Reply
Map
View

Click here to load this message in the networking platform