O.P. RE: JScript To VB6
Hmm. Thanks for that. However i am still having trouble sending data from JScript to VB.
Going by Matty's example. I have a project1.dll with a string fuction called ContactID. In this function I set the string varible to 'hello' (for test purposes). Then I have this in my Plus! Script:
var MyActiveXObject = new ActiveXObject('Project1.Class1');
MyActiveXObject.ContactID = Messenger.MyName;
Debug.Trace(MyActiveXObject.ContactID());
But keep getting errors on the middle line, where i'm trying to assign a value to the string i made in the dll. If i comment out the line, then the rest works, and the backup varible 'hello' is displayed as it should. Any ideas what I'm doing wrong?
|