Jump to content

multiple answer input box


Recommended Posts

Welcome to the forums! (Just saying.. because you got 4 posts)

Well here's a little example that should help..

Source :

$Input = InputBox ('Multi-Question Inputbox','Here are three questions..' & @CRLF & '#1.) How old are you"?' & @CRLF & '#2.) Whats your name?' & @CRLF & '#3.) Whats your favorite color?' & @CRLF & @CRLF & 'Answer in this format : ' & @CRLF & 'Answer #1,Answer #2,Answer #3' & @CRLF & 'Example : 14,John,Red','','','','215')
If @Error Then Exit 
$Input = StringSplit ($Input, ',')
If $Input['0'] < '2' Then Exit MsgBox ('0','Error','Anwsers not submitted in the correct format, please try again.','0')
$Age = $Input['1']
$Name = $Input['2']
$Color = $Input['3']
MsgBox ('0', $Name & "'s Information",'Age : ' & $Age & @CRLF & 'Name : ' & $Name & @CRLF & 'Color : ' & $Color, '0')

Hope it helps! :)

- John

Latest Projects :- New & Improved TCP Chat

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...