k()

Read(226) Label: serial byte,

Description:

Generate a serial byte with a specified number of bytes.

Syntax:

k(n:l)

Generate a serial byte with the length of l bytes from the integer n

k(ni,…)

Generate a serial byte where byte values are ni,…

Note:

The function generates a serial byte (Sbyte) with a specified number of bytes. A SByte is an integer made up of byte values and can have a maximum length of 8 bytes. It is used to represent key values. Two SBytes with the same length are comparable, but can’t be computed.

Parameters:

n

An integer

l

The length of bytes with 1 being the default value; the max value is 8

ni

Byte value

Return value:

A serial byte value

Example:

=k(1)

1; generate a serial byte value whose length is one byte from integer 1

=k(256:1)

Generate a serial byte value whose length is 1 byte from integer 256; since 256 occupies more than one byte, error will be reported:Out-of-bound index

=k(256:2)

256; generate a serial byte value whose length is two bytes from integer 256

=k(1,2,3)

66051