datadump

Returns informatin about the internal representation of the variable.

Available in:

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

Syntax

char datadump(variable)
ident         variable

Description

Returns a string value containing the datatype, flag, length, and hex representation of the variable.

Example

{
int      i;
numeric  n;
char     c;
datetime d;

i = 10;
n = 5.7;
c = 6;
d = to_date("10-JUL-90");

printf(datadump(i));
printf(datadump(n));
printf(datadump(d));
printf(datadump(c));
}
returns
dty: 0, flg: 0, len: 4, 0A000000
dty: 2, flg: 0, len: 3, C10647
dty: 12, flg: 0, len: 7, 77BE070A010101
dty: 1, flg: 0, len: 1, 36