Class: String
Description
This method unpacks a data string. This method is typically used for file conversions where data is provided in packed format. This method replaces the $$UNPACK^%ZFUNC function.
Packed data may appear in the following format:
NN NN NS
where N is a number from 0 to 9, and S is the sign (e.g., A/C/E/F for Positive; all other values for Negative).
Syntax
StringObject.unpack(Number length)
Parameters
length |
The number of digits to unpack, excluding the sign. |
Returns
An unpacked string.
When Became Available
v7.0
Example
write !, xyz.unpack(7)