Using the Project's Login()-Method with VisualBasic.NET 2010
Answers
-
Not sure whether this helps or not, but here is the example code in the Empower Data Explorer source code that you can download from the support site:
Dim empProj As MillenniumToolkit.ITkProject3
empProj = New MillenniumToolkit.ProjectClass()
empProj.Login(databasename, projectName, username, password)
If you read the whole code for the EmpowerController Class in the Empower Data Explorer example code, it gives more details on how to obtain the database list and project array.
0 -
Hello,
Another useful bit of information is this occurs because of overloading in the toolkit interface and VB.NET can't handle it.
This is caused by the different way VB handles interfaces. There are multiple instances of the Login function defined in the inheritance of the Project interfaces (there are different versions of the tkProject interface, each inheriting from the previous versions) and although C# can cope with this, Visual Basic cannot.
Casting to the earlier version of the interface (where there is no ambiguity) solves the problem.
Dim prj as MillenniumToolkit.ITkProject3
prj = new MillenniumToolkit.ProjectClass()
prj.Login( "", "Defaults", "hope", "Pray")
Dot
0