Hi,
I am trying to convert a scrit accessing a plugin from basic (.txt) to VB (.vb)
the original working script ( .txt) is :
sub main
with hs.plugin("mcsXap")
.SendXapMessage "test.rest.test", "BSC.Message", "Fonction", "Valeur" & Chr(1) & "Value"
End With
[font=Calibri]end sub
the vb version :
Sub Main()
Dim xap as object
xap = hs.GetPluginsEX("mcsXap")
with xap
.SendXapMessage("test.rest.test", "BSC.Message", "Fonction", "Valeur" & Chr(1) & "Value")
End With
End Sub
and i get the following :
Scripting runtime error: System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Does anyone have a idea why ?
I am trying to convert a scrit accessing a plugin from basic (.txt) to VB (.vb)
the original working script ( .txt) is :
sub main
with hs.plugin("mcsXap")
.SendXapMessage "test.rest.test", "BSC.Message", "Fonction", "Valeur" & Chr(1) & "Value"
End With
[font=Calibri]end sub
the vb version :
Sub Main()
Dim xap as object
xap = hs.GetPluginsEX("mcsXap")
with xap
.SendXapMessage("test.rest.test", "BSC.Message", "Fonction", "Valeur" & Chr(1) & "Value")
End With
End Sub
and i get the following :
Scripting runtime error: System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Does anyone have a idea why ?
Comment