Visual Basic 2010

May 4, 2015 at 12:56 PM
Hi at all
I would like to use the API (v11) with Visual Basic 2010. Is it possible ? Witch the dll to include in the project ?
Thanks alot

May 4, 2015 at 3:16 PM
You can do it. The dlls are not language specific and can be written in C#, VB, or F#, anything in the .NET runtime. You need to mark your entry point with the STAThread attribute, and reference the VMS.TPS.Common.Model.API.dll and VMS.TPS.Common.Model.Types, then you can do:
Module Module1

    <STAThread> Sub Main()
        Dim app = VMS.TPS.Common.Model.API.Application.CreateApplication("myusername", "mypassword")
        Dim pat = app.OpenPatientById("1111111")
        Dim courses = pat.Courses
    End Sub

End Module
Marked as answer by rexcardan on 5/4/2015 at 7:16 AM
May 4, 2015 at 3:50 PM
Thanks alot!!! I try immediatly !

Luigi Azario