PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Compresses a string or a memory block (buffer) in binary format. Then, the decompression will be performed by Uncompress.
Versions 23 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 23
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Java This function is now available for the Java applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Compresses then decompresses a string
Comp is Buffer = Compress("String to compress")
Info(Uncompress(Comp))
Syntax
<Result> = Compress(<Character String/Buffer> [, <Type of Compression>])
<Result>: Buffer
  • Compressed buffer.
  • Empty string ("") if an error occurred. ErrorInfo returns the error details.
<Character String/Buffer>: Character string or Buffer
  • Character string to compress.
  • Buffer to compress.
<Type of Compression>: Optional Integer constant
Versions 21 and later
Type of compression to perform:
compressNoneNo compression is performed.
AndroidAndroid Widget Java Not available.
compressShortStringCompression via an algorithm optimized for the short character strings.
AndroidAndroid Widget Java Not available.
Versions 21 and later
compressGZIP
New in version 21
compressGZIP
compressGZIP
Compression with the GZIP algorithm.
compressLZW
(Default value)
Compression with the LZW algorithm.
AndroidAndroid Widget Java Not available.
AndroidAndroid Widget Java This parameter must necessarily be specified.
New in version 21
Type of compression to perform:
compressNoneNo compression is performed.
AndroidAndroid Widget Java Not available.
compressShortStringCompression via an algorithm optimized for the short character strings.
AndroidAndroid Widget Java Not available.
Versions 21 and later
compressGZIP
New in version 21
compressGZIP
compressGZIP
Compression with the GZIP algorithm.
compressLZW
(Default value)
Compression with the LZW algorithm.
AndroidAndroid Widget Java Not available.
AndroidAndroid Widget Java This parameter must necessarily be specified.
Type of compression to perform:
compressNoneNo compression is performed.
AndroidAndroid Widget Java Not available.
compressShortStringCompression via an algorithm optimized for the short character strings.
AndroidAndroid Widget Java Not available.
Versions 21 and later
compressGZIP
New in version 21
compressGZIP
compressGZIP
Compression with the GZIP algorithm.
compressLZW
(Default value)
Compression with the LZW algorithm.
AndroidAndroid Widget Java Not available.
AndroidAndroid Widget Java This parameter must necessarily be specified.
Related Examples:
WM Sports Cross-platform examples (WINDEV Mobile): WM Sports
[ + ] This example is a sport application used to save your performances.
The application calculates the distance, the time, the average speed and the number of calories spent according to the sport.
The run is displayed on a map control via markers and an itinerary.

The example also includes a server part used to synchronize the user data.
This webservice is available in the WEBDEV "WW_Sports" example.
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment