| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
Mnemonic:
| (CFLD) |
| Hex equivalent: | "@0407@" |
| Discussion: |
Clear field.
The (CFLD) control code clears all foreground characters in a field in which the cursor is located and replaces them with foreground blanks. It then positions the cursor in the first position of the field (left-most position for alphanumeric fields and right-most position for right-justified numeric fields). The control code does not affect background or invisible (suppressed background) fields. This control code may also include a positioning statement to start the clearing operation at a specific point on the screen. |
| Example: |
a. 100 FORMAT (CFLD),@(10,0) . PRINT (0,100) b. PRINT (0) (CFLD),@(10,0)This example demonstrates the "clear field" control code. The positioning statement puts the control into action at column 10, row 0. If this location is a foreground field, it will be cleared to foreground blanks (if not, the control code will do nothing). |