bas7qck.hlp (Table of Contents; Topic list)
Manipulating Strings
  Programming Tasks                            Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Statements and Functions Used for Manipulating Strings
 
                     Statement or
Task                 function          Action
══════════════════   ═══════════════   ═════════════════════════════════════
Getting part of      LEFT$             Returns a given number of characters
a string                               from the left side of a string.
 
                     RIGHT$            Returns a given number of characters
                                       from the right side of a string.
 
                     LTRIM$            Returns a copy of a string with
                                       leading blank spaces stripped away.
 
                     RTRIM$            Returns a copy of a string with
                                       trailing blank spaces stripped away.
 
                     MID$ Function     Returns a given number of characters
                                       from anywhere in a string.
 
Searching strings    INSTR             Searches for a string within another
                                       string.
 
Converting to        LCASE$            Returns a string expression with
uppercase or                           all letters in lower case.
lowercase
                     UCASE$            Returns a string expression with
                                       all letters in uppercase.
 
Changing strings     MID$ Statement    Replaces part of a string with
                                       another string.
 
                     LSET              Left-justifies a string within a
                                       fixed-length string.
 
                     RSET              Right-justifies a string within a
                                       fixed-length string.
 
Converting numbers   STR$              Returns the string representation
to strings, and                        of the value of a numeric expression.
strings to
numbers              VAL               Returns the numeric value of a
                                       string of digits.
 
Creating strings     SPACE$            Returns a string of blank
of repeating                           characters.
characters
                     STRING$           Returns a string consisting of one
                                       repeated character.
 
Getting the length   LEN               Tells how many characters are in a
of a string                            string.
 
Working with         ASC               Returns the ASCII value of the
ASCII values                           given character.
 
                     CHR$              Returns the character with the
                                       given ASCII value.