Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
String-to-String Compression in VBScript
Demonstrates how to do string-to-string compression using BZIP2 compression in VBscript. set crypt = CreateObject("Chilkat.Crypt2")
crypt.UnlockComponent "30-day trial"
crypt.EncodingMode = "Base64"
' Create something to compress
myStr = "<test>"
for i = 0 to 30
myStr = myStr + "This is test data to be compressed. " + vbCrLf
next
myStr = myStr + "</test>"
' Show the original.
MsgBox myStr
' Compress and display the output.
MsgBox crypt.CompressStringENC(myStr)
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.