sizeof

Returns the allocated size of a variable.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

int sizeof (variable)
ident       variable

Notes

variable calculates during generation while the length() function calculates at runtime.

Example

Returns the allocated length of the user ID variable.
usize = sizeof(G.USER);