Possessed Posted August 4, 2006 Share Posted August 4, 2006 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 i never tryed running a input box so heads up i am a noob. Link to comment Share on other sites More sharing options...
Skruge Posted August 4, 2006 Share Posted August 4, 2006 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 EndFuncDon't use Call unless you absolutely have to. (Hint: you don't) [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
Possessed Posted August 4, 2006 Author Share Posted August 4, 2006 Thank you so much man ! that was fast to it works awsome hehe Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now