Hi,
A Dotnet Variable has not been Instantiated. Attempting to call, this error message will pop up when trying to call a .Net Framework Assembly from CAL code.
when you calling a .Net Framework Assembly without constructor call you will get above mentioned error message.
A constructor is a method that creates an instance of an object and prepares it for use. Before you use a DotNet variable, you should verify whether the variable is static or is an object instance because this determines whether you have to use a constructor.
- Static variables do not require a constructor because they do not have an instance.
- Object instance variables require a constructor because they must be created before they can be accessed.
Example Code with constructor Call from CAL code
Asmbly := Asmbly.ConverttoUppercase(); // Constructor Call
ConvsertyedString := Asmbly.ConverttoUp('marshal'); // Method Call
MESSAGE(ConvsertyedString);
Name DataType Subtype
Asmbly DotNet UpperCase.ConverttoUppercase.'UpperCase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Marshal