HomeExam Question Papers - (Class-10, Class-9, Class-8, Class-7, Class-6, Class-5, Class-4Class-3Class-2Class-1, Class-S.K.G., Class-J.K.G., Class-Nursery)

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 :

Facebook x
Back To Top

facebook

Powered by Blogger.