I have a .Net 2.0 custom action which needs to set a FinalBuilder string variable. I’m getting properties from FinalBuilder into my custom action just fine but the sets aren’t working. The variable is empty. Is this the correct syntax?
Context.Properties.set_PropertyAsString(“Results”, myResultsString);
This yields the same results:
Context.SetVariable(“Results”, myResultsString);
Thanks.
> Context.Properties.set_PropertyAsString(“Results”, myResultsString);
This is the syntax to set a field of the action called “Results”
> Context.SetVariable(“Results”, myResultsString);
This is the syntax to set a FinalBuilder variable called “Results” (the FB variable called “Results” needs to be defined)
You could also output the myResultsString to the log before you set the variable to make sure it’s got the right value:
Context.SendLogMessage(myResultsString);
Feel free to email us the custom action if you want to have a look at it.