Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language PVScript

(PerfectView)

Date:12/11/06
Author:R.J. Groothuis
URL:n/a
Comments:0
Info:http://pv.nl
Score: (3.50 in 4 votes)
'99 Bottles of Beer in PVscript
'By R.J. Groothuis

Sub OnLabel2Click()
   For i = 99 To 0 Step -1
       Select Case i
           Case 1
               msg i & " Bottle of beer on the wall, " & i & " bottle of beer."
               msg "Take one down and pass it around, no more bottles of beer on the wall."
           Case 0
               msg "No more bottle of beer on the wall. No more bottles of beer..."
               msg "Go to the store and buy some more... 99 bottles of beer."
           Case Else
               msg i & " Bottles of beer on the wall, " & i & " bottles of beer."
               msg "Take one down and pass it around, " & i - 1 & " bottles of beer on the wall."
       End Select
   Next
End Sub

Sub msg(message)
    MsgBox message, , "99 Bottles of Beer"
End Sub

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: