Lingo Dictionary > L-N > last() |
![]() ![]() ![]() |
last()
Syntax
the last chunk of (
chunkExpression
)
the last
chunk
in (
chunkExpression
)
Description
Function; identifies the last chunk specified by chunk
in the chunk expression specified by chunkExpression
.
Chunk expressions refer to any character, word, item, or line in a container of character. Supported containers are field cast members, variables that hold strings, and specified characters, words, items, lines, and ranges within containers.
Example
This statement identifies the last word of the string "Macromedia, the multimedia company" and displays the result in the Message window:
put the last char of "Macromedia, the multimedia company" "
The result is the word company.
Example
This statement identifies the last character of the string "Macromedia, the multimedia company" and displays the result in the Message window:
put last char("Macromedia, the multimedia company")
The result is the letter y.
See also
![]() ![]() ![]() |