Shoki
Shoki

Reputation: 21

how do i play beep sound from PowerBuilder app?

I need my PowerBuilder application to play beep sound for at least two seconds. Can this be done with Win API?

Upvotes: 0

Views: 626

Answers (1)

Matt Balent
Matt Balent

Reputation: 2407

From the PowerBuilder Help:

Beep PowerScript function

Causes the computer to beep up to 10 times.

Syntax

Beep ( n )

n The number of times you want the computer to beep. If n is greater than 10, the computer beeps 10 times.

Return Values

Integer. Returns 1 if it succeeds and -1 if it fails. If n is null, Beep returns null. The return value usually is not used.

Examples

This statement causes the computer to beep five times:

Beep(5)

Upvotes: 4

Related Questions