Jump to content

Recommended Posts

Posted (edited)

ok in a program im making i have a input box that comes up and asks a person to enter a number 1-5 how can i make it so that if their answer is 1 it will GoTo the section that i want it to or if they pick 2 how can i make it GoTo another section? in other words wats the command for GoTo since it no longer exists...

question answered by myself lol check next post for next question

Edited by alatedseraph
Posted

$var = inputbox("Input", "Please Enter a Value from 1 - 5")
     If $var < 1 or $var > 5 Then
          MsgBox(0, "Error", "Invalid Value" & @CRLF & "Click OK To Exit")
     EndIf

Select
     Case $var = 1
          'Code goes here

     Case $var = 2
          'Code goes here

     Case $var = 3
          'Code goes here

     Case $var = 4
          'Code goes here

     Case $var = 5
          'Code goes here

EndSelect

That takes care of that part, but i'm not sure what you're wanting with the music repeating

We have enough youth. How about a fountain of SMART?

Posted

read help file.

search something that begins with So and ends in ay

$hint$: Sou--P-ay :ph34r:

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Posted

if u even paid attention to wat i was saying i wanted the music to play over and over again not just 1 time i know about soundplay() i want it so that it plays it again and again

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...