Imports [Function]
That is my reference to a Function.dll file which includes some encryption methods. One object is named Encrypt. It includes a property lError. Basically, I have to force the initialization of the lError property to False everytime I am calling that method now:Encrypt.lError = False Encrypt.Decrypt(tcEMSXML, lcDecryptKey) If Encrypt.lError Then Throw New System.Exception(Encrypt.cError) End If lcXMLReceived = Encrypt.cDecryptIn Function.dll, the method is defined as:
Public Class Encrypt Public Shared lError As Boolean = False ' The function used to decrypt the text Public Shared Function Decrypt(ByVal tcString As String, ByVal sDecrKey As String) End Function End Class