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
~~~~~~~~~~~~~~~~~~
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