Results 1 to 5 of 5

Thread: A little help Plz!

  1. #1
    Join Date
    Oct 2006
    Location
    Kentucky
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default A little help Plz!

    Ok I need a little help with something, I normally can figure stuff out with trail and error but I'm completely lost here.

    I'm trying to make a simple script so I can experiment with forms I figured out how to do alot of the form things, but I don't know how to get the form to run a procedure required for the item selected in the combobox.

    Example: Auto rune buyer
    If in the combobox Air rune was selected, How do i get it to run the right procedure for buying Air runes??
    Any help is greatly appreciated!

  2. #2
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could make your form with a dropdown that holds a list of values. (The exact details of which you will need someone else's help with.) Let's say that's in your variable. When you get to the part where you wanna execute different things, do a case-switch statement on your variable. And depending on which was picked, you can choose to call different procedures.


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

  3. #3
    Join Date
    Oct 2006
    Location
    Kentucky
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can do that with writeln messages but when I try to have it call upon another procedure it always messes up.

  4. #4
    Join Date
    Sep 2006
    Posts
    161
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then why not have one procedure, but a case-switch inside the procedure that determines what you do?


    Wow. I've been away quite a while. Real life, yea, way unpredictable. Sorry, y'all, if I've caused any inconvenience.

  5. #5
    Join Date
    Oct 2006
    Location
    Kentucky
    Posts
    70
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Doh! thats that little click in my brain that I needed thanks I think Iv got it know

    Thank You very much, I just love these forums and the srl members everyone is so helpful, sometimes little things that you guys say help ppl like me out alot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •