TrimLeft$
TrimmedString$ = TrimLeft$(SourceString$, [Remove$ =Space&TAbs])
 
Parameters:

    SourceString$ = The string you wish to remove characters from
    [Remove$ =Space&TAbs] = The optional characters string to remove. The default characters are spaces and tabs
Returns:

    TrimmedString$ = The returned string with the Head/Tail characters removed
 

      The TrimLeft$ function will return the source string$ after any unwanted characters have been removed from the head of this string. The characters to be removed are specified by the user with the Remove$ parameter.



FACTS:


      * None.



Mini Tutorial:



  
  
; Define a string variable called message
  Message$="-------Hello World-------------"
  
  
; Display this string variable
  Print Message$
  
; Display the trimmed message
  Print Trim$(Message$,"-")
  
; Display the left trimmed message
  Print TrimLeft$(Message$,"-")
  
; Display the right trimmed message
  Print TrimRight$(Message$,"-")
  
; display the screen and wait for a key press
  Sync
  WaitKey
  
  



This example would output.

  
  -------Hello World-------------
  Hello World
  Hello World-------------
  -------Hello World
  



 
Related Info: CutLeft$ | CutRight$ | Trim$ | TrimRight$ :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com