Results 1 to 3 of 3

Thread: [RESOLVED] QBASIC question

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    43

    Resolved [RESOLVED] QBASIC question

    Alright. I have three SUBS (so far) in my program. I want one of the SUBS to activate a labeled line in the main module. Here is a code for one of my SUBS.

    QBASIC Code:
    ----------------------------------
    SUB CmdPrmpt
    ---COLOR 15
    ---13, 1
    ---PRINT "Command Prompt"
    ---INPUT "Command"; cmd$
    ---SELECT CASE cmd$
    ------CASE "exit"
    ---------END
    ------CASE "restart"
    ---------GOTO 220
    ------CASE "menu"
    ---------GOTO 1
    -------CASE "cheat"
    ---------CheatMenu
    ---END SELECT
    END SUB


    The turquoise is the line that I want to go back to the main module and *work*

    The red, in case you didn't know, goes to a different SUB (just wanted to clear that up)

    { THE WHITE DASHES BEFORE LINES ARE JUST THERE AS SPACES (indents) }
    I can help with C++, Java (some), vB, Ruby/RoR, Python, JavaScript, and TorqueScript

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    43

    Re: [RESOLVED] QBASIC question

    i resolved it all ready... sorry!
    I can help with C++, Java (some), vB, Ruby/RoR, Python, JavaScript, and TorqueScript

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: [RESOLVED] QBASIC question

    { THE WHITE DASHES BEFORE LINES ARE JUST THERE AS SPACES (indents) }
    There's no need to do that, you can just use Code tags.. either using the button in the post editor screen, or by putting them in manually, like this: [code] 'code here [/code]

Posting Permissions

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



Click Here to Expand Forum to Full Width