AnsweredAssumed Answered

vrf VEE pro 6.0 & .net

Question asked by VRFuser on Jun 14, 2006

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




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





To subscribe please send an email to: "" with the word subscribe in the message body.
To unsubscribe send a blank email to "".
To send messages to this mailing list, email "".
If you need help with the mailing list send a message to
Search the "unofficial vrf archive" at "".