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 Uniface 9.3

Date:01/03/10
Author:Theo Neeskens
URL:http://theunifaceuniverse.blogspot.com/
Comments:0
Info:http://www.compuware.com/solutions/enterprise_application_development.asp
Score: (3.00 in 4 votes)
; 99 bottles of beer, using Uniface 9.3
; Uniface is a 4GL development environment from Compuware
;
; Technical Info: 
; Only the <EXEC>-Trigger is used.
; One Non-Database/Non-model entity "DUMMY" 
; with one outputbox (!) "LYRICS"

variables
  numeric vBottles
endvariables

vBottles = 99
repeat
  selectcase(vBottles) 
    case 0
      LYRICS.DUMMY = "No more bottles can be found."
    case 1 
      LYRICS.DUMMY = "One bottle of beer on the wall. Take it down, pass it around.%%^"
    elsecase
      LYRICS.DUMMY = "%%vBottles%%% bottles of beer on the wall. Take one down, pass it around.%%^"
  endselectcase
  show
  vBottles -= 1
until (vBottles < 0)
display

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: