I have had Revolution Media for two months now.
I am extremely frustrated that I have not yet produced the simplest of programs.
I was reassured a little when I read Andycal's "An Epithany" (16th June in the general discussion forum).
To get me started, could someone tell me how to write a program that
a) gets a number from the user, then
b) displays the result of that number multiplied by 2, on an output window?
Regards, Geoff.
How to do anything at all
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
That could be as simple as a button with script:
Like any programming language, rev takes some getting used to it. But this forum and the use-revolution mailing list are excelloent resources when you need a hand.
HTH,
Jan Schenkel.
Code: Select all
on mouseUp
ask "Please enter a number"
answer it && "multiplied by 2 is" && (it * 2)
end mouseUp
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com