Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.9 Alarm Method

Description:

Plays the wave file configured for the defined sound in the Windows system.

Used in controls:

None.

Used in objects:

Form

Parameters:

[VT_I4 - SoundTypeS9(9) COMP-5]

Description of Parameters:

Defines the sound to use. You can use the following constants to set the sound.

POW-MBOK: (Default) The default sound (Normal)

POW-MBASTERISK: The Asterisk sound (Information)

POW-MBQUESTION: The Question sound

POW-MBEXCLAMATION: The Exclamation sound (Warning)

POW-MBHAND: The Critical Stop sound

Return value:

VT_I4 - ReturnValueS9(9) COMP-5

Non-zero indicates normal completion.
Zero indicates an error.

Example:

* Play the exclamation sound for the
*  current form
 INVOKE POW-SELF "Alarm"
   USING     POW-MBEXCLAMATION
   RETURNING ReturnValue

Backward compatibility
method name:

ALARM

Backward compatibility
arguments:

S9(4) COMP-5