Sign in to follow this  
Followers 0
Welsh

How to use a variable from a Input Box?

6 posts in this topic

hey, once again another quick question. I have an input box but i want to save what the user puts in the box as a variable. how would i do that?


[center].: If I Ask A Question, Thanks For The Help! :.[/center][center].: Welsh :.[/center]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

hey, once again another quick question. I have an input box but i want to save what the user puts in the box as a variable. how would i do that?

$MyVariable = InputBox("Enter you name now or you will be shot in the streets.")

Not only can you pass stuff to functions, but functions can give stuff back to you.

So you just do $MyVariable = TheFunc() and that functions, (if it is a return func) will give stuff back.

Edited by Mixture63

Share this post


Link to post
Share on other sites

$MyVariable = InputBox("Enter you name now or you will be shot in the streets.")

Now only can you pass stuff to functions, but functions can give stuff back to you.

So you just do $MyVariable = TheFunc() and that functions, (if it is a return func) will give stuff back.

thanks, after posting it i found it in the help file, but thanks anyway.

[center].: If I Ask A Question, Thanks For The Help! :.[/center][center].: Welsh :.[/center]

Share this post


Link to post
Share on other sites

thanks, after posting it i found it in the help file, but thanks anyway.

ok. How old are you btw?

Share this post


Link to post
Share on other sites

ok. How old are you btw?

16 and why?


[center].: If I Ask A Question, Thanks For The Help! :.[/center][center].: Welsh :.[/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

16 and why?

No reason.

I'm 14.

Edited by Mixture63

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