SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.strlib‎ > ‎

Chop


Platform Objects


Description

Using the chop method will truncate a given string at a desired location. This will 

Syntax


            target.strlib.Chop( input, N )
               
                                input (input) - String to chop
                                N - Number of characters from the end which will be truncated. By default if you do
                                not specify N chop will delete one 
                                


Return Value


                    This function returns a string.
            

Sample


'---------- Start ----------
Function Start
Dim str

   str  = "Lot Number" 
    target.strlib.Chop( str, 5 )

end function

See also

Platform Objects and Methods
Trim
Split
Mid