Sign in to follow this  
Followers 0
Possessed

Alittle help with input box.

3 posts in this topic

Hello all i am making alittle program that needs to run a "func" as many times as a user would like so i put in a input box and i cant seem to get it to run as many times as i would like it to. for Ex: ill type in 3 in the input box and then it will ethor run only 1 time or if i put it another way it will run till i stop it. here is the code.

Func Start()
    $value = InputBox("Enter Amount", "Enter the amount of keys to rip.")
$i = 0
Do
    Call("MenuNAV")
  $i = $i > $value
Until $i = $value

EndFunc

i hope poeple will understand what i am doing :whistle: i never tryed running a input box so heads up i am a noob.

Share this post


Link to post
Share on other sites



Welcome to the forums!

Try this:

Func Start()
    $value = InputBox("Enter Amount", "Enter the amount of keys to rip.")
    For $i = 1 To $value
        MenuNAV ()
    Next
EndFunc
Don't use Call unless you absolutely have to. (Hint: you don't)

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Thank you so much man ! that was fast to it works awsome hehe Thanks again.

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