Skip to content

UPK

Unpack Integer from String

This string function unpacks the results of the PCK function.

UPK (string-value [,ERR=line-ref|,ERC=error-code])
string-value
is a string containing numeric data that was previously packed with a PCK function.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is the inverse of the PCK function.

LET X = UPK($0D23394F$)

assigns X the value 12345678.

PCK function

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF