Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

10.2.1 Using POW-SELF as a Control

In many of the example applications supplied with PowerCOBOL, you will note that the control name "POW-SELF" appears in INVOKE statements.

You can think of POW-SELF as a name for the form you are currently editing procedure code for. POW-SELF is a convenient mechanism for not having to remember the name of specific forms when invoking methods for them.

For example, if you were currently editing one of the event procedures for a form named "MainForm", and you wanted to deactivate MainForm, you could code:

	INVOKE MainForm "Deactivate"

You could also just as easily code the following to execute the identical operation:

 	INVOKE POW-SELF "Deactivate"

PowerCOBOL realizes the "POW-SELF" means "the form I am currently editing procedure code for", and thus "INVOKE POW-SELF" means "invoke myself".