I have read the definition of “LoadGPPreset”. That’s why I put the comment there in the code for you to see! I asked the question because I am trying to use an array to provide a PluginBlock to the statement. So, this issue certainly has to do with the use of Arrays.
I am obviously confused with SNTAX, so my question is: How can I use the Array “PluginBockArray” to provide the correct informtion?
Yes, I know you’re trying to use an array ---- but you have two issues
Your first parameter is a function GetWidgetLabel, that function returns a string but the first parameter for LoadGPPreset has to be a plugin block per the documentation
Independently of that issue, the GetWidgetLabel function wants a widget as its parameter, but you are providing a plugin block
GP Script is strongly typed. You cannot pass parameters of the wrong type into function calls and that is why the compiler is correctly throwing the error:
Semantic error in “Main”: Line 1137, Col 33: Argument type mismatch”