SalStrCompress
and SalStrUncompress
.I have made some small changes to the article text and the sample which may be interesting to bump here.
The function
SalStrCompress
does NOT check if the data to be compressed is already compressed.So as an example:
Code: Select all
Set sData = "This is just some text to compress"
Call SalStrCompress( sData )
Call SalStrCompress( sData )
! sData is now compressed twice. Having 2 compression headers in sequence
Call SalStrUncompress( sData )
! sData is not the original data now, it is still compressed. It has now 1 compression header
Call SalStrUncompress( sData )
! sData is now back to the original data
Using the custom function
PALStrIsCompressed
you can check whether data is compressed or not.There are now two extra functions added to the sample:
PALStrCompressOnce
-> will compress data only once. WHen data is already compressed it will not compress again.PALStrUncompressAll
-> will uncompress data having one or more compression headers until the data is uncompressed.Here the TDWiki article link:
https://wiki.tdcommunity.net/index.php/ ... ailed_info