Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Parameter of array type to COM object
Message
From
12/04/1999 11:52:14
 
 
To
10/04/1999 20:02:11
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00207199
Message ID:
00207461
Views:
19
ix = pm.AddLineItem() &&where pm = CreateObjectEx("Progistics.Merchant") which is running on a remote server. ix = actually equals 0 because this scripting array begins at zero.

The example that I quoted was taken from VB Scripting. When I looked up the source code in regular VB5, it was displayed like this:
FormatWeight.Value=txtWeight1.Text
PMInstance.ProductAttribute(i,"WEIGHT")=CDbl(FormatWeight.Value)
Notice the CDbl? I thought this was causing a possible datatype error which would explain the 'Invalid Function, argument, or value' but I am also getting the same error for the "FALSE" statement (which is text, not a flag). Upon displaying their value and character types, I just receive .NULL.

I do believe that ix and i represent row 0 of an array because you can have multiple shipping packages per shipment which is the OrderAttribute vs. the many of ProductAttribute. When you perform the AddLineItem() it adds another line to the array (or index number which it is referred to in the documentation).

Thanx for your prompt response.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform