Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

TAB Statement and LOCATE Statement (Qbasic)

TAB Statement: 
It is used to move the cursor to a specified column position.
The syntax of general format of TAB statement is:
TAB (n) where 'n' is the column value.
Example:
CLS
PRINT TAB(20); "Qbasic Programming"
END


LOCATE Statement:
It is used to move the cursor to the specified position on the screen with reference of row and column.
Syntax:
LOCATE row,column:

Example:
CLS
LOCATE 10, 40: PRINT "Test"
END


Share :

X
Back To Top

facebook main

Powered by Blogger.