|
|
|
|
|
Left (Function) In french: Gauche Extracts the left part (i.e., the first characters) from a string or buffer.
Left("The cuckoo", 6)
Left("ABC", 50)
Left("AZELMA ")
MyString is string = "Developing is child's play"
Left(MyString, 10)
Syntax
Extracting the left part of a character string Hide the details
<Result> = Left(<Initial string> [, <Length>])
<Result>: Character string - Left part of <Initial string>. Corresponds to <Initial string> if <Length> is greater than the length of <Initial string>.
- EOT if <Length> is negative. A WLanguage error occurs (non-fatal error). To get more details on the error, use ErrorInfo.
<Initial string>: Character string Character string from which the left part will be extracted. This string is not modified. <Length>: Optional integer Number of characters to extract. If this parameter is not specified, <Result> corresponds to <Initial string> without trailing spaces. Remarks Left and UNICODE If the string passed as a parameter is an ANSI string, the result will be an ANSI string. If the string passed in parameter is in Unicode format, the result will be in Unicode format. Reminder In Unicode, each character occupies two bytes of memory. The memory size of a Unicode string is therefore twice the number of characters actually contained in the string. The fist character in the string is at index 1. Note If the result on an ANSI string is assigned to a Unicode string (and vice versa), the conversion will be implicitly performed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|