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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO Rowset Jscript AddRows Syntax

Status
Not open for further replies.

SGTech

Programmer
Jun 23, 2001
8
US
Greetings,
I need to know the syntax for addRows to a CDORowSet from a Jscript array of arrays.


This is the jscript array:
var arrTotal= new Array('open','closed','hist_open','hist_closed','wk_strt','wk_end');
arrTotal['open'] = new Array();
arrTotal['closed'] = new Array();
arrTotal['hist_open'] = new Array();
arrTotal['hist_closed'] = new Array();
arrTotal['wk_strt'] = new Array();
arrTotal['wk_end'] = new Array();

Have used response.write lines to verify array data.

This is my attempt:
oCDORowSet.AddRows(arrTotal);

This is error reported:
Error Type:
CrystalDataObject.CrystalComObject (0x80020005)
Type Mismatch in Parameter. Must be an array object

Any assistance greatly appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top