Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro Settings wrong
Message
 
 
À
09/10/2001 15:22:28
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00566132
Message ID:
00566143
Vues:
21
>Thank you for your prompt response. The last line of code is causing the error:
>
>
>LOCAL vCommander
>LOCAL ParamStr
>LOCAL sResult
>LOCAL iRet
>
>
>* Get the Commander Object. If GroupWise isn't up, this will bring it up
>vCommander = CREATEOBJECT("GroupWiseCommander")
>
>* Bring up the new mail dialog.
>ParamStr = "NewMail()"
>
>* this line gives the error
>iRet = vCommander.Execute(ParamStr, sResult)

When you declare variable Local foxpro assigns .f. as value. I guess sResult has to be a string and something will be returned in it. Try following
sResult = REPLICATE( CHR(0), 255)   && Put whatever size sResult should be
* Pass sResult by refrence
iRet = vCommander.Execute(ParamStr, @sResult)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform