Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instance object COM+
Message
De
14/07/2004 17:17:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Instance object COM+
Divers
Thread ID:
00924400
Message ID:
00924400
Vues:
52
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform