Argox PA-20 Basic Programming Manual User Manual
Page 73

PT-Basic Programming Manual Ver. 1.00
72/143
Purpose: To enable specific TextBlock.
Syntax: A%=SETTEXTBLOCK(BlockNo% ,Save%)
Example: A%=SETTEXTBLOCK(1,0)
Description: A% is an integer variable to be assigned to the result.
A%
Meaning
0
Set TextBlock fail
1
Set TextBlock OK
Several key arguments as below:
BlockNo%
TextBlock number(1~15)
Save%
Save flag to save screen (Save%=1) or not
(Save%=0).
Purpose: To disable specific TextBlock.
Syntax: RESETTEXTBLOCK(BlockNo%)
Example: RESETTEXTBLOCK(1)
Description: BlockNo% is an integer in the range from 1 to 15 indicating
TextBlock number.
Purpose: To print Text to specific TextBlock.
Syntax: PRINTTEXTBLOCK
(BlockNo%, Column%, Row%, Str$ ,FontColor%)
Example: PRINTTEXTBLOCK(2,5,5,"Hello",0) „font color is black
Description: Several key arguments as below:
BlockNo%
TextBlock number(0~15)
Column%
TextBlock column number.
Row%
TextBlock row number.
Str$
Text data.
FontColor % Text color.
Purpose: To get the x coordinate of the current TextBlock position.
Syntax: A% =GETTEXTBLOCKCUR_X(BlockNo %)
Example: PRINT "X=",GETTEXTBLOCKCUR_X(1)
Description: A% is an integer variable to be assigned to the result.
BlockNo% is an integer variable in the range from 0 to 15.