EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

ZIPCompressString Method
 
     

Cryptocx v7 User Guide

 

ZIPCompressString Method

This is the method that you use to compress a string.

You can for example use this method to compress data before encrypting it with one of the other Cryptocx methods in order to save space.

 

Description

Compresses a String.

     
Syntax

x = object.ZIPCompressString

The syntax of the ZIPCompressString method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes the compressed string of the input string
       
Remarks The resultant compressed string is base64 encoded so you can easily store it in a database field for example.
       
Returns

The Compressed String

     
Example Sample Visual Basic Code to create an Compress a string:

Where Cryptocx1 is an instance of a Cryptocx Control.

 

''
'' Compress the specified String
''

Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"

Cryptocx.InputText = txtUncompressed.Text
txtCompressed.Text = Cryptocx.ZIPCompressString


'' Free up Memory Resources
''

Set Cryptocx = Nothing

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com