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$(a$[,x]) RIGHT$(a$[,x]) a$: sexp x: iexp LEFT$() returns the first x characters from the character string a$. If x is larger than the number of characters in a$, then the whole of a$ is returned. If x is not specified, the first character of a$ is returned. RIGHT$() returns the last x characters from the character string a$. If x is larger than the number of characters in a$, then the whole of a$ is returned. If x is not specified, the last character of a$ is returned. Examples: a$="Right-minded people use GFA BASIC" b$=LEFT$("GFA Systemtechnik",4) PRINT b$;RIGHT$(a$,5) --> 'GFA BASIC' is printed on the screen. a$="Oh, don,t" b$=LEFT$(a$)+RIGHT$("look") PRINT b$ --> 'Ok' appears on the screen.