You need to sign in to do that
Don't have an account?
compilation error because public method not found
Hallo,
I have a public class called parameterlesenclass in which I have a public function called read_decimal_param like this:
public class Parameterlesenclass
{
...
public decimal read_decimal_param (String param_name)
{
...
}
}
If I now try to call this function from a clobal void within a global class with the following code:
Decimal WBZ = parameterlesenclass.read_decimal_param('WBZ');
I get the compilation error: Method does not exist or incorrect signature: parameterlesenclass.read_decimal_param(String)
Has anyone an idea why a public function is not found?
Thanks Harry
You have to declare the method either as static or create an instance of the class and then access the method.
All Answers
You have to declare the method either as static or create an instance of the class and then access the method.
That was a silly question!
Thanks Harry