Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help calling a method
Message
De
18/01/1999 20:07:40
 
 
À
18/01/1999 19:46:30
Mark Lauahi
Advanced Motion Controls
Camarillo, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00177419
Message ID:
00177428
Vues:
32
What's the error message? Is the object created?

IMO, the second call should work if all variables (that are passed as params) are initializated before the call.

Vlad

>Our company purchased a software package for our MRP system. The software supports the creation of a middleware object for using some pretty nifty ole automation techniques.
>
>If I use Visual Basic I can use the following code:
>
>Dim Objectmethod As Object
>Set Objectmethod = Createinstance("SYMIX.sfctrans")
>Objectmethod.sfctransins var1 var2,var3,var4,var5....
>
>var1,var2,var3 are variants declared in Visual Basic. They are passed to the method above.
>
>It has no problem with this code
>
>In VFP this does not work. I can create the instance just fine, but when I attempt to call the method sfctransins I generate errors. I don not know if this is because of not being able to explicitly declare variables as variant in VFP or if it is a syntax error in the way I am calling the above method. I have tried
>
>objectmethod.sfctranins("var1,var2,var3...")
>objectmethod.sfctranins(var1,var2,var3)
>objectmethod.sfctranins var1,var2,var3
>objectmethod.sfctranins 'var1','var2','var3'...
>
>Any clues HELLLLLLPPPPP!!!!!
>
>IF anybody gets this tonight If you can e-mail me at MJLAUAHI@MSN.COM
>I would really appreciate this.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform