Invalid Property error when calling external library

emperor

New Member
My program is to check the battery status. The following commands were used to call external library file which was created by C#.

~~~~~~~~~~~~~~~~~~
Sub Construct_Obj
...
AddObject("BATStatus", "LXEAPIMX7Wrapper")
BATStatus.New1(cPPC)
End Sub

Main App_Start
...

MainVolt.Text = Main_Battery_Volt
...
End Sub

Sub Main_Battery_Volt

ErrorLabel(errBackupBatteryVolt)
If (BATStatus.MS_GetSystemPowerStatusEx2 = True) Then
BackupVoltValue = BATStatus.sBackupBatteryVoltage
End If
Return BackupVoltValue
errBackupBatteryVolt:
Msgbox("LXEApi BackupBatteryVolt return error: " & BATStatus.sWin32Error)
End Sub
~~~~~~~~~~~~~~~~~~~~~~~

When I compile this code, compiler give error

"invalid property in line If (BATStatus.MS_GetSystemPowerStatusEx2 = True) Then "

Please help me to know the cause of the error.
Thanks & best Regards
 

emperor

New Member
It's foolish mistake

:sign0013: It can't compile because of different names in C# file. Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…