For DotNetAssembly object
Applies to
DotNetAssembly objects
Description
This property stores the error and diagnostic messages returned
from .NET if LoadWithDotNetFramework/LoadWithDotNetCore or
CreateInstance functions return a value other than 1; for example, when
LoadWithDotNetFramework function failed to find a valid assembly or
dependent file is missing; or CreateInstance function failed to find the
constructor function etc.
The property value will be cleared after the function is
successfully called.
In scripts
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
DotNetObject lcs_obj DotNetAssembly lcs_ass long ll_return //Instantiates the object lcs_ass = create DotNetAssembly lcs_obj = create DotNetObject //Loads the DLL ll_return = lcs_ass.LoadWithDotNetFramework ("OraClient.dll", false) if ll_return < 0 then //Prompts a message when failed to load DLL messagebox ("LoadDll Failed", lcs_ass.errortext) return end if //Creates the instance ll_return = lcs_ass.createinstance ("OraClient.class1", lcs_obj) if ll_return < 0 then //Prompts a message when failed to create instance messagebox ("CreateInstance Failed", lcs_ass.errortext) return end if |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest