•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileLEFT$(), RIGHT$()
MID$ (as a command), MID$() (as a function)
PRED(), SUCC()
LEN()
TRIM$()
INSTR(), RINSTR()
STRING$(), SPACE$(), SPC()
UPPER$()
LSET, RSET

These functions allow the manipulation of strings by selectively altering and
concatenating (+) their contents. The functions LEFT$() and RIGHT$() return the
left or right part of a character string. MID$(), used as a function, returns a
section from the middle of a string, or, used as a command, allows the
replacement of part of one string with all or part of another. PRED() and
SUCC() return the character with the ASCII code one lower or one higher than
the first character of the specified string. While LEN() determines the length
of a character string. INSTR() and RINSTR() search a particular string for the
occurrence of another string. STRING$(), SPACE$(), and SPC() generate strings
composed of several identical strings, and UPPER$() transforms all lower case
letters in a string to upper case. Left and right justified insertion of one
string into another is accomplished with LSET and RSET.

MIN() and MAX() also work on string expressions.

Memo: For compiler optimizations see section 'Character Strings'.
      See FRE() for problems related to string memory handling.