| Home | Previous Lesson: Access Levels - Variables Next Lesson: Choosing Between Events and Functions |
Two types of functions can be declared in PowerBuilder; global functions and object functions. Declaring a function in function painter becomes global function. To declare a function at an object level, you need to display popup menu in the script painter and select 'Go To > Function' and select '(New Function)' from the second left DDLB. Global functions are always public. You can specify access levels for object functions in the function declaration dialog box, as shown below:
You can't specify Read/Write modifiers for functions, which makes sense.
| Home | Previous Lesson: Access Levels - Variables Next Lesson: Choosing Between Events and Functions |