>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.
The error it appears if everything that the method needs is there is a "Data Mismatch Error". When the method just fires up you get an OLE ERROR, property not found error. I will go into suspend mode, try to change some of the data that is in the variables. Some of the data I attempt to chage is dates and NULL's. I can at a certain point generate ther data mismatch error. I am not even certain if I am reaching the method call or not. Aa I stated before that in Visual Basic if you just declare all variables as Variant, then it seems to like it in the method call. I think that i need to verify that VFP is even communicating with the method. I don't belive that I am there yet in VFP.
Previous
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