TEXT-END
FUNCTION
This variable interacts with the READ command with the TEXT option. It is an end-of-text flag for text field processing. It can be used to prematurely specify the end of text.
SYNTAX
TEXT-ENDNOTES
- The TEXT-END default is “N”, which means the entire text field is read. Another valid value is “E”, which stands for end of text.
- The READ command with the TEXT option reads through an entire text field until the value of TEXT-END is set to “E”. The value will be set to “E” when the READ command reaches the end of text.
- To prematurely terminate reading a text field, you can manually set the value of TEXT-END to “E”. The LET TEXT-END = “E” statement placed in the text processing procedure will terminate the read.
EXAMPLES
IF T$(1,8) = END-PERIOD THEN LET TEXT-END = "E"ENDIFSEE ALSO
READ
From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF