Jump to content

Recommended Posts

Posted

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.

Posted

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]

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
  • Recently Browsing   0 members

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