Left Function
- 已更新2025-07-21
- 閱讀時間為 1 分鐘
Left Function
Syntax
String Left(String string, Number numberOfCharacters)
Return Value
A string that contains the specified number of characters from the left side of the original string.
Purpose
This function retrieves a substring from the left side of a string of the specified number of characters.
Parameters
string as String
A string.
numberOfCharacters as Number
The number of characters to return from the left side of the string. If this number is greater than the number of characters available, the function returns the entire string.