General information
Title:
Need help calling a method
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only