Naming the function

Name the function in the Function Name box. Function names can have up to 40 characters. For valid characters, see “identifier names” in the online Help.

For object-level functions, the function is added to the Function List view when you tab off the Function Name box. It is saved as part of the object whenever you save the object.

Using a naming convention for user-defined functions makes them easy to recognize and distinguish from built-in PowerScript functions. A commonly used convention is to preface all global function names with f_ and object-level functions with of_, such as:

// global functions
f_calc
f_get_result

// object-level functions
of_refreshwindow
of_checkparent

Built-in functions do not usually have underscores in their names, so this convention makes it easy for you to identify functions as user defined.