forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Character Functions
                                             Up Contents Index Back
─────Character Functions────────────────────────────────────────────────────
 
     LGE, LGT, LLE, and LLT determine whether a character argument
     is less than, greater than, or equal to another character argument
     based on the ASCII collating sequence. If two character arguments
     are not of equal length, the shorter operand is padded to the
     length of the larger operand by adding blanks.
 
     INDEX returns the position of charB in charA. If the length of
     charA is less than the length of charB, or if charB does not
     occur in charA, the index equals zero. If charB occurs more than
     once in charA, the position of the first occurrence of charB is
     returned. The log parameter, when .TRUE., starts the comparison
     at the end of the string and moves toward the beginning.
 
     The LEN_TRIM function returns the length of the string argument,
     less the number of trailing blanks.
 
     The SCAN and VERIFY functions both compare a string with the
     group of characters in charset. SCAN returns the position of the
     first string character that matches a character in charset, while
     VERIFY returns the first position that does not match a character
     in charset. If there is no match, or the string is of zero
     length, SCAN returns zero. If there is no mismatch, or the string
     is of zero length, VERIFY returns zero. The log parameter, when
     .TRUE., starts the comparison at the end of the string and moves
     toward the beginning.
                                    -♦-