May 12, 2013

WHILE...WEND loop

The WHILE...WEND loop executes a set of instructions as long as a given condition is true.The syntax of the WHILE...WEND loop is given below:

WHILE  <condition>
<instruction-list>
WEND
where,
condition is a logical expression
instruction-list  is the set of instructions to be executed repeatedly.

Steps Of  Execution-
1. condition is evaluated.

2. If condition evaluates to true, instruction-list is executed, otherwise the control is transferred to instructions immediately after WEND.

3.The WEND statement transfers the control back to step 1.

Example-1
Using the loop in a programme-
CLS
X=10
WHILE X<15
PRINT "The value of X is:";X
X=X+1
WEND
END

Try this in your qbasic and explore more.......

May 05, 2013

Changing the background and text color

Normally, most of you have got bored of this q basic with it's blue and white sober nature.

To give it a tinge of your own style, follow the below process-
1.Click on Options and select 'Display' among the drop-down menu.

2.A Display window appears.see among the colors section.

3.Select the color you prefer for the text in the bar below the  foreground 

4.Select the color you prefer for the background in the bar below the  background.

5.Click 'OK' to confirm your settings.