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
Syntax target.strlib.Chop( input, N )
Return Value This function returns a string.
Sample
'---------- Start ----------Function StartDim str str = "Lot Number" target.strlib.Chop( str, 5 )end function
'---------- Start ----------
Function Start
Dim str
str = "Lot Number"
target.strlib.Chop( str, 5 )
end function
See also
Platform Objects and MethodsTrimSplitMid
Platform Objects and Methods
Trim
SplitMid