Adagio
7 years agoFrequent Contributor
ReferenceError: recordToObject is not defined
Hello,
I'm using this code to fetch the DB Table data into an array, but just today I started getting this error:
"ReferenceError: recordToObject is not defined"
Could some one please help me understand what's the issue here?
//execute a query var set = conn.Execute_(execQuery); //declare an array var DBlist = new Array();; if(set.EOF == false){ set.MoveFirst(); while(! set.EOF) { //Log.Message(set.Fields) DBlist.push(recordToObject(set)); set.MoveNext(); } Log.Message(DBlist.length); Log.Message(DBlist[0]); conn.Close(); return DBlist; }else{ Log.Message("No Records Found in the DB"); //Closing the connection conn.Close(); return false; }
Any help would be appreciated!
Thank you
Abhi