Command Line basec program.. - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html) +--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html) +--- Thread: Command Line basec program.. (/thread-683.html) |
Command Line basec program.. - -(hS)-Black Sheep - 04-22-2003 Hi There, I'm mostly a total newbie to QBasic. I know the base..:/ But I would like to work with variable, for the begining. Lately, I got an idea about command line based program but I don't know how to separate a sentence and make piece of this stock as variable. Ex: INPUT "Enter Information"; command$ If the user answer :Simon 123 Hi I would like to make Simon variable A, 123 variable B, and Hi variable 3. Could someone help me? :???: Exscuse my bad english btw, I'm french :// Thanks Command Line basec program.. - na_th_an - 04-22-2003 Well, you have to use several commands. The simplest way is going accross the string, and stopping on each word. You can use an array: Code: DIM word$(100) ' 100 words maximum. Check on QB help if you don't know some commands. |