Language Reference Guide : System Classes : StringObject Class : LeftTruncate Method
 
Share this page          
LeftTruncate Method
The LeftTruncate method truncates the string from the first character up to and including the character at a specified ordinal position.
This method has the following syntax:
StringObject.LeftTruncate(endposition = integer)
This method has the following parameter:
endposition
Specifies the ordinal position of the final truncated character in the string object
In a string object, characters in the text are numbered from left to right, starting with number one. Left truncation effectively causes the string to shift to the left by the number of characters truncated (the number truncated is equal to the position number specified in endposition).
If the value of endposition is less than one or greater than the length of the string, no truncation occurs.
Note:  If the StringObject is being displayed in an entry field, the changes made by this method are not visible until the entry field's UpdField method is invoked.