Question
2
Replies
39
Views
Posted: June 1, 2020
Last activity: June 3, 2020
Out parameter returning nothing
Hi,
I created following C# method in the utility script. This method always return the value of output parameter message as "NULL"
It is correctly returning true; but the value of output string is always NULL
public bool Hello(out string message) { message = "Hello how are you"; return true; }
Please advise whether in Pega Robotics output parameters are used correctly above syntactically
Your script is correct. If you are simply using the debugger, then unless you pass that value somewhere, it will show null. Send it to a variable or something and you'll see the value.