• Log in or sign up for an account here: https://www.sythe.org/login

Small 'asking user' tutorial

Joined
Jan 27, 2007
Sythe Gold
0
Messages
1,225
Location
/bin/sh
Want to ask your user if he/she wants to open a new window etc?
here's the answer:
First off, add two forms. Make them named form1 and form2 (default).
now, double click on form1 (which prob. run first).
Enter this code:
Code:
answer = msgbox("Do you want to open form2?",vbokcancel,"ello" ' ello = _caption of msgbox
if answer = vbok then
form2.show
form1.hide
else
msgbox "You didn't want to =(",,"Sad :("
end if
vbokcancel declares that you want a ok button and a cancel button.
 
Runescape Gamblingrunescape gambling
Back
Top