Home > comp > gb.compress > compress > string 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Compress.String (gb.compress)
Syntax
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.

Examples

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