Hi I do not seem to be able to get your javascript example to work.
Wire.Insert('system.js',BSON(['_id','x1','value',bsonJavaScriptCodePrefix+
'function(){return {test:123};}']));
d:=Wire.Get('$cmd',BSON(['eval','x1();']));
Memo1.Text:=BsonToJson(IUnknown(d['retval']) as IBSONDocument);
The error I am getting is: Could not convert variant of type (Null) into type (Unknown)
Hi I do not seem to be able to get your javascript example to work. Wire.Insert('system.js',BSON(['_id','x1','value',bsonJavaScriptCodePrefix+ 'function(){return {test:123};}'])); d:=Wire.Get('$cmd',BSON(['eval','x1();'])); Memo1.Text:=BsonToJson(IUnknown(d['retval']) as IBSONDocument); The error I am getting is: Could not convert variant of type (Null) into type (Unknown)