Home > comp > gb.compress > compress > string 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Compress.String (gb.compress)
Function String ( Source As String [ , Level As Integer, AllowGrow As Boolean ] ) As String

This function returns a string compressed using the algorithm defined by the Type property.

Example

Dim Cz As New Compress
Dim Buf As String

Cz.Type = "bzlib2"

Buf = Cz.String(SourceString,Cz.Max,FALSE)

IF Len(Buf) < Len(SourceString) THEN
    PRINT "Compression successfully finished"
ELSE
    PRINT "Unable to compress that string"
END IF