JSDB     Home    License    Download    Tutorial    Reference    Projects    Feedback    History

Where you see GetObject('class') in Microsoft JScript, you should use new ActiveX('class') in JSDB. Where you see new ActiveX('class') in JScript, you can use new ActiveX('class',1) in JSDB to force creation of a new object.

Visual Basic
cmd = CreateObject("ADODB.Command");


	print result[1]
	
JavaScript
cmd = new ActiveX("ADODB.Command");
	cmd.set("CommandText","select * from mytable")
	result = cmd.Execute();
	writeln(result.get("Fields",1).get("Name")) //read from an array
	
Since very few ActiveX objects have property descriptor tables, MyObj.get('property') works better than MyObj.property.