Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass Vfp Object to a DCOM server ?
Message
From
01/08/2000 15:59:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00399459
Message ID:
00399555
Views:
38
>Hi All,
>
>I'm Trying to Pass a Vfp Object to a Dcom application as a parameter.
>It receives the object well but i can't get values from it's property ?
>
>Ex:
>
>oParam = CreateObject("Custom")
>oParam.Addproperty("Param1",0)
>oParam.Addproperty("Param2","Allo")
>
>x = CreateObjectEx("MyDcom.Main")
>? x.MyFunction(oParam)
>
>
>*******************************
>MyFunction
>*******************************
>Lparameters toParam
>Local llRet
>llRet = .F.
>IF VARTYPE("toParam") = "O"
> IF toParam.Param1 = 0 and !Empty(toParam.Param2)
> llRet = .T.
> ENDIF
>ENDIF
>RETURN llRet
Hate to ask that but is MyFunction a method of main class? Also what if you change "main" to other name?
Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform