devxlogo

A Tale of Three Beeps

A Tale of Three Beeps

Are your programs not executing instructions in VB4 that wereexecuting in VB3? Try this in Qbasic, VB3, and VB4:

 BEEP: BEEP: BEEP

If you F8-step through this very complex code, you will hear threebeeps except when running on VB4, which will produce only twobeeps. Reserved words, such as Beep, and Cls are treated as labels.Notice the colon.

Using VB4:

 BEEPBEEPBEEP

will give the expected three beeps.

devx-admin

Share the Post: