Hi,
I want to use DotNet with callableVeeServer.
Normally, with VBA, I can used Variant type to Input and output data to and from Vee UserFunction.
When I replace Variant type by Object type for Inputs and outputs, the here after error appears at the line “Call Uf1.Call(Inputs, Outputs)â€
Expected parameter "Outputs" to be passed ByRef
This error can also be caused by passing a scalar
variable when an array is expected.
Â
Â
Imports CallableVEE
Public Class Form1
   Dim MonServeur As New CallServer
   Dim Librairie As CallableVEE.Library
   Dim Uf1 As UserFunction
   Dim Libpath As String
   Dim Inputs(1) As Object
   Public Outputs(1) As Object
Â
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Â
Â
       ' Create VEE server object and load library
       MonServeur = CreateObject("CallableVEE.CallServer")
       Libpath = "examplescallableveelib.vee"
       Librairie = MonServeur.Libraries.Load(MonServeur.InstallDir & Libpath)
Â
       ' Set debug mode appropriately
       MonServeur.Debug = True
Â
       ' Call simple VEE UF and update spreadsheet
       Uf1 = Librairie.UserFunctions("TwoInTwoOut1")
       Inputs(0) = 2
       Inputs(1) = 5
Â
       Call Uf1.Call(Inputs, Outputs)
Â
Â
   End Sub
End Class
Â
With a user function without Output terminal, and with
Call Uf1.Call(Inputs),
No error appears and Vee windows appears
Â
Where is the problem?
Thanks for your help
Regards
Â
Michel JOSEPH
EMITECH île de France,
Laboratoires CEM Militaire, aéronautique, spatial et automobile.
3, rue de coudriers
78180 Montigny le Bretonneux
Tél: 01 30 57 55 55
Fax: :01 30 57 86 40
Mail: m.joseph@emitech.fr
URL: www.emitech.fr
Â
---
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
I want to use DotNet with callableVeeServer.
Normally, with VBA, I can used Variant type to Input and output data to and from Vee UserFunction.
When I replace Variant type by Object type for Inputs and outputs, the here after error appears at the line “Call Uf1.Call(Inputs, Outputs)â€
Expected parameter "Outputs" to be passed ByRef
This error can also be caused by passing a scalar
variable when an array is expected.
Â
Â
Imports CallableVEE
Public Class Form1
   Dim MonServeur As New CallServer
   Dim Librairie As CallableVEE.Library
   Dim Uf1 As UserFunction
   Dim Libpath As String
   Dim Inputs(1) As Object
   Public Outputs(1) As Object
Â
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Â
Â
       ' Create VEE server object and load library
       MonServeur = CreateObject("CallableVEE.CallServer")
       Libpath = "examplescallableveelib.vee"
       Librairie = MonServeur.Libraries.Load(MonServeur.InstallDir & Libpath)
Â
       ' Set debug mode appropriately
       MonServeur.Debug = True
Â
       ' Call simple VEE UF and update spreadsheet
       Uf1 = Librairie.UserFunctions("TwoInTwoOut1")
       Inputs(0) = 2
       Inputs(1) = 5
Â
       Call Uf1.Call(Inputs, Outputs)
Â
Â
   End Sub
End Class
Â
With a user function without Output terminal, and with
Call Uf1.Call(Inputs),
No error appears and Vee windows appears
Â
Where is the problem?
Thanks for your help
Regards
Â
Michel JOSEPH
EMITECH île de France,
Laboratoires CEM Militaire, aéronautique, spatial et automobile.
3, rue de coudriers
78180 Montigny le Bretonneux
Tél: 01 30 57 55 55
Fax: :01 30 57 86 40
Mail: m.joseph@emitech.fr
URL: www.emitech.fr
Â
---
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".