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 :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.