Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need help calling a method
Message
From
18/01/1999 19:46:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Need help calling a method
Miscellaneous
Thread ID:
00177419
Message ID:
00177419
Views:
62
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.
Next
Reply
Map
View

Click here to load this message in the networking platform