Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameter of array type to COM object
Message
De
15/04/1999 08:24:43
 
 
À
12/04/1999 22:00:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00207199
Message ID:
00208510
Vues:
23
Upon further review, I don't believe that I need a VB COM wrapper or that I even have the wrong data type for that matter. I believe it is the way I am accessing that particular attribute. The reason I am experiencing difficulty is because Java refers to objects (classes) as coclasses, interfaces, and attributes. I am used to methods and properties.

Since I seem to be able to pass data such as "Billy Bob" to lcProgistics.OrderAttribute("CONSIGNEE_NAME"), the data for the ProductAttribute shouldn't be any different because I can not send "CR2" to lcProgistics.ProductAttribute(ix, "CONSIGNEE_REFERENCE") either which is a string vs. an integer for "WEIGHT". I do not think that I have the syntax correct for:
lcProgistics.ProductAttribute(ix, "WEIGHT") = "21" or
lcProgistics.ProductAttribute(ix, "CONSIGNEE_REFERENCE") = "CR1"
The documentation says the following in regards to ProductAttribute:
Get/Set the attribute of a product
Property(propget)
VARIANT ProductAttribute(int index, BSTR name)
Parameter Description
Index The index of the line item
Name The element name
I can access the index with another command such as
lcProgistics.ProductAttributeList(7001).Item(lcx)
which returns "WEIGHT" as one of the required product attributes when lcx = 0- 7001 stands for the Rate module.

I also tried the following and did not receive an error and it did pass a value but I do not know what it passed a value to, it wasn't to "WEIGHT":
lcProgistics.ProductAttribute(0,0) = "21" and this
lcProgistics.ProductAttribute(0,1) = "FALSE" also passed the value.

I believe that my syntax is off. How do I access specific indexed attributes? Could I possibly use something like:
lcProgistics.ProductAttribute::WEIGHT??? If I try to execute the lcProgistics.Rate function regardless of these settings, I get the error
lcProgistics.ProductAttribute?:WEIGHT not found.

Sheila
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform