quote:
Originally posted by Griffo
code:
function OnEvent_Initialize(MessengerStart)
{
var MyActiveXObject = new ActiveXObject('Project1.Class1');
Debug.Trace(MyActiveXObject.ShowMyText);
}
It should be written as MyActiveXObject.ShowMyText
()
code:
function OnEvent_Initialize(MessengerStart)
{
var MyActiveXObject = new ActiveXObject('Project1.Class1');
Debug.Trace(MyActiveXObject.ShowMyText());
}
quote:
Originally posted by Griffo
code:
Public Function ShowMyText()
ShowMyText = "Hello World!"
End Function
When declaring ShowMyText it should return a string
code:
Public Function ShowMyText() As String
ShowMyText = "Hello World!"
End Function
Here you go.