> I've developed a com server and i need to add objects from other com server. How can i do?
>
> This is the code:
>
> DEFINE CLASS persona as Session OLEPUBLIC
> nombre=""
> edad=0
> direccion=""
>
> PROCEDURE crear (nom as String,ed as Integer,dir as String)
> nombre=nom
> edad=ed
> direccion=dir
> ENDPROC
> ENDDEFINE
>
> DEFINE CLASS Server AS Session OLEPUBLIC
> ADD OBJECT jp as persona.persona
>
> * Other procedures and properties
> ENDDEFINE
>
> The error generated is: "ADD OBJECT jp as persona.persona
> Error in line 4: Command contains unrecognized phrase/keyword."
ADD OBJECT jp as OleControl WITH;
OLEClass = [persona.persona]
Or I prefer that way:
DEFINE CLASS Server AS Session OLEPUBLIC
jp = NULL
PROCEDURE Init
this.jp = CreateObject([persona.persona])
ENDPROC
ENDDEFINE
Borislav Borissov