Sign in to follow this  
Followers 0

Making New Lines In A Msgbox... How?

3 posts in this topic

Posted

I can't remeber what the keys were to add a new line to a msgbox. I need to give the user an input box with somethin that look slike this:

Question

Which spot do you want to save to? (Type the spot number)

1) &var1

2) &var2

3) &var3

4) &var4

5) &var5

-[iNPUT BOX]-

PLZ HELP!! Thx.!

-nanascalala

Share this post


Link to post
Share on other sites



Posted

$msg="Which spot do you want to save to? (Type the spot number)"
$msg= $msg & @LF & "1) &var1"
$msg= $msg & @LF & "2) &var2"
$msg= $msg & @LF & "3) &var3"
$msg= $msg & @LF & "4) &var4"
$msg= $msg & @LF & "5) &var5"

InputBox("title", $msg )

Here is :whistle:

Share this post


Link to post
Share on other sites

Posted (edited)

make sure to give Imputbox a variable though. ya code to fast at times.

$msg="Which spot do you want to save to? (Type the spot number)"
$msg= $msg & @LF & "1) &var1"
$msg= $msg & @LF & "2) &var2"
$msg= $msg & @LF & "3) &var3"
$msg= $msg & @LF & "4) &var4"
$msg= $msg & @LF & "5) &var5"
while 1
$var=InputBox("title", $msg )
if int($var)>0 and int($var)<6 then exitloop
wend

or try this out:

$msg="Which spot do you want to save to? "& @crlf &"(Type the spot number)"
$msgs=Stringsplit("bob,joe,fred,sam,jimbo",",")
for $i=1 to $msgs[0]
$msg= $msg & @LF & $i & ") "& $msgs[$i]
next
while 1
$var=InputBox("title", $msg )
if int($var)>0 and int($var)<$msgs[0]+1 then exitloop
wend
msgbox(1,"Your pick was",$msgs[int($var)])
Edited by scriptkitty

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.