Advanced PowerBuilder

HomePrevious Lesson: Referencing Window Variables Directly
Next Lesson: Structures

Opening Window with a Parameter

For windows, sheets and user objects, you can pass parameters by using

functions, rather than just the standard plain old opening functions. If you are working with PowerBuilder windows, you can also return values by using the CloseWithReturn() function instead of the Close() function. The syntax for these functions are as follows:
OpenWithParm(<window name>, <parameter>, {Parent})

The only disadvantage to this method is that you can only pass one parameter. We can get around this by using structures.
HomePrevious Lesson: Referencing Window Variables Directly
Next Lesson: Structures