Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing arrays to COM objects by reference: Urgent

Status
Not open for further replies.

FoxLearner

Programmer
Aug 29, 2002
93
US
Hi All
Yesterday I posted a question regarding error 2020, which deals with passing arrays by referencing to a Com Object in VFP8.0. I am calling a VB DLL's method from VFP7.0 by passing arrays by referencing and it was working fine.
I had to compile the APp in VFP8.0 to use XML objects. Then I started getting an error message saying "The calss file(controls) associated with this field could not be found. Class association is cleared." This is Error 2020.
I searched on this and found that the service pack 1.0 fixes this problem specifically. Eventhough I already installed the Service pack 1.0 I reinstalled it and the problem persisted.
I checked further and found a method ComArray(para1,para2), which specifies how Arrays are passed to COM objects. This says the first parameter is the name of the COMobject called, and if the Array starts at(1), and is passed by reference, the second parameter is 11,.
I used "=ComArray(loCOMObject,11)" just before calling the loCOMObject. but it still gives me error.
CAn some on please help me with this pelae?
Here is the code I am using:

=COMARRAY(objManRateVar,11)
llRetVal = objManRateVar.ExecuteAlgorithm(@laPlanTab, lnRateTier, lnCallType, THIS.GroupPass(1), .F., THIS.GroupPass(15), llRateRelationCheck, @laGroupPass)

Thanks for your time and consideration
FoxLearner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top