iResult = WritePrivateProfileString(SectionName, KeyName, KeyValue, IniFilePathName) fWriteIniString = iResult <>0 Catch ex As Exception ThrowNew Exception("Error In fWriteIniString!!!"& vbCrLf & _ "Source:"& ex.Source.ToString() &"Message:"& ex.Message) EndTry End Function
PrivateSub Class_Initialize_Renamed()Sub Class_Initialize_Renamed() Try objFilesys =New Scripting.FileSystemObject Catch ex As Exception ThrowNew Exception("Error In Class_Initialize_Renamed!!!"& vbCrLf & _ "Source:"& ex.Source.ToString() &"Message:"& ex.Message) EndTry End Sub PublicSub New()SubNew() MyBase.New() Class_Initialize_Renamed() End Sub
PrivateSub Class_Terminate_Renamed()Sub Class_Terminate_Renamed() Try objFilesys =Nothing Catch ex As Exception ThrowNew Exception("Error In Class_Terminate_Renamed!!!"& vbCrLf & _ "Source:"& ex.Source.ToString() &"Message:"& ex.Message) EndTry End Sub ProtectedOverridesSub Finalize()Sub Finalize() Class_Terminate_Renamed() MyBase.Finalize() End Sub End Class End Module