Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass Vfp Object to a DCOM server ?
Message
De
01/08/2000 15:59:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00399459
Message ID:
00399555
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform