Code Sample

# The code for our example
on mouseUp
set the loc of fld 1 to 1100,165
move field 1 relative -1550,0 without waiting
end mouseUp

# An even simpler way
on mouseUp
answer "Hello World"
end mouseUp

Hello World

Hello World always seems to be the first step you take when investigating a new language. Although we have added a few graphics to this application, the basic application is made up of a field and a button. The code on the left is used to move a field that contains the words "Hello World" across the screen.

There are many different ways to take on the hello world test in revolution. It can be done with just a button which creates a popup dialog with the text "Hello World".