This is an old revision of the document!
Script reference
ispacked( string )
Returns 1 if the string is packed.
Description
ispacked( const string[] )
Returns 1 if the string is packed (single byte per character).
Return 0 if the string is using a cell (4 bytes) for each character.
Parameters
string | reference to string to be tested |
Return value
This function returns the packed status of a string
Example usage
new x; new s{6} = "Hello"; x = ispacked(s); // x is now 1