Returns a string description of the last error encountered by the Controller class
VB
Imports MBLink
Dim MBDevice As New Controller()
MBDevice.IPAddress = "192.168.1.45"
MBDevice.Connect()
If MBDevice.ErrorCode = ResultCode.E_SUCCESS Then
MessageBox.Show("Connect Success")
Else
MessageBox.Show(MBDevice.ErrorString)
End If
C#
Using MBLink;
Controller MBDevice = new Controller()
MBDevice.IPAddress = "192.168.1.45";
MBDevice.Connect();
if (MBDevice.ErrorCode == ResultCode.E_SUCCESS)
MessageBox.Show("Connect Success");
else
MessageBox.Show(MBDevice.ErrorString);
Controller Class | MBLink Namespace | Connect | ErrorCode