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

    SourceString$ = The String 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
 

      CutRight$ returns the remaining characters after removing the characters in a source string, that on the right hand side (and including) the a nominated cut point.



FACTS:


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



Mini Tutorial:


  
  
; Display the string "Hello World" with all of the characters
; to the right of and including character 6 removed.
  Print CutRight$("Hello World",6)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  Hello
  

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


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