Some CSPro logic functions have optional arguments that can only be specified by supplying the name of the parameter, followed by the := operator, and then the argument. Named arguments appear in the text editor colored in a reddish color. The general form is:
function_name(ʃrequired_argumentsʅ, parameter_name1 := argument1ʃ, ...ʅ);
For example, the
ValueSet.add function allows you to specify the filename of an image to associate with a value:
flowers_vs.add("Rose", 1, image := "red-rose.jpg");
Multiple named arguments can be supplied in any order. Both of these statements are identical:
flowers_vs.add("Rose", 1, image := "red-rose.jpg", textColor := "#ff0000");
flowers_vs.add("Rose", 1, textColor := "#ff0000", image := "red-rose.jpg");
For functions that use named arguments, the arguments that can be specified will be documented in the help page for that function.