Skip to main content

LastCodeunitOf

Type​

operator

Summary​

Designates the last codeunit in Target.

Syntax​

the last codeunit of <Target>

Description​

Either locates the last codeunit for use as the target container of another operation, or evaluates the last codeunit as the source of another operation.

note

It is an error if Target is empty.

Parameters​

NameTypeDescription

Target

An expression which evaluates to a string.

Examples​

variable tVar as String
put "codeunit" into tVar

variable tLast as String
put the last codeunit of tVar into tLast -- tLast contains "r"
Thank you for your feedback!

Was this page helpful?