CutLeft$
Result$ = CutLeft$(SourceString$, CutPoint)
 
Parameters:

    SourceString$ = The String you wish to grab the characters from
    CutPoint = The character index to use as the cut point
Returns:

    Result$ = All the characters to the left of the cut point
 

      Cutleft$ returns the remaining characters after removing all the characters in a source string that on the left hand side (and including) the a nominated cut point.




FACTS:


      * The cut point is inclusive. So if you cut a string that is ten characters long, at character position five, CutLeft$ will chop off characters 1,2,3,4,5 and return characters 6,7,8,9,10




Mini Tutorial:


  
  
; Display the String "Hello World" with all of the characters to the left of and inclusing character 5 removed.
  Print CutLeft$("Hello World",5)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  World
  

 
Related Info: CutRight$ | Left$ | Mid | Mid$ | Right$ | Trim$ | TrimLeft$ | TrimRight$ :
 


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