ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Encryption/compression functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Compresses a string or a memory block (buffer) in binary format. Then, the decompression will be performed by Uncompress.
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 details of the error.
<Character String/Buffer>: Character string or Buffer
  • Character string to compress.
  • Buffer to compress.
<Type of Compression>: Optional Integer constant
Type of compression to perform:
compressGZIPCompression with the GZIP algorithm.
compressLZW
(Default value)
Compression with the LZW algorithm.
AndroidAndroid Widget Java Not available.
compressNoneNo compression is performed.
AndroidAndroid Widget Java Not available.
compressShortStringCompression via an algorithm optimized for the short character strings.
AndroidAndroid Widget Java Not available.

AndroidAndroid Widget Java This parameter must 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.
Business / UI classification: Business Logic
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help