Skip to main content

RangeCodeunitOf

Type​

operator

Summary​

Designates the codeunits between indices Start and Finish in Target.

Syntax​

codeunit <Start> to <Finish> of <Target>

Description​

Either locates the codeunits between the given indices for use as the target container of another operation, or evaluates the codeunits at the given indices as the source of another operation.

note

It is an error if either Start or Finish are out of range.

Parameters​

NameTypeDescription

Start

An expression which evaluates to a valid integer index of Target.

Finish

An expression which evaluates to a valid integer index of Target.

Target

An expression which evaluates to a string.

Examples​

put tCodeunits into codeunit 5 to 10 of tString // Locates codeunits 5 to 10 of tString and replace them with tCodeunits
get codeunit 5 to 10 of tString // Evaluates codeunits 5 to 10
Thank you for your feedback!

Was this page helpful?