Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using IActiveScript::AddNamedItem

132 views
Skip to first unread message

alu

unread,
Jun 5, 2012, 5:10:57 AM6/5/12
to
I've implemented IActiveScriptSite interface and can execute scripts now. I
add an object into the script to be able to use their functionality in
the script but it doesn't fully work.

Let say this object has two method

void Test1(string aParam) { ... }
void Test2(string aParam1, string aParam2) { ... }

and I am passing this object as Context.

What I can do is to call

Context.Test1("1")

and it works

But if I try to execute the other method

Context.Text("1", "2")

it throws an exception.

It looks like I can use only methods with one parameter,
what is really strange.
Does anyone know how to deal with this?
I need to execute method with 2 and more parameters.










alu

unread,
Jun 6, 2012, 4:20:14 AM6/6/12
to
my mistake, wrong vbscript syntax
0 new messages