I have a custom function that returns true/false value and I would like to use it in several different Code Modules in the following way:
bool status = customFunction();How can I implement this in my project?
Thanks
bool status = customFunction();How can I implement this in my project?
Code: Select all
public static bool CustomFunction() {
bool returnVal = true;
//Do the work here and set returnVal to the appropriate value.
return returnVal;
}
Code: Select all
bool value = Program.CustomFunction();