ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Compression (Property)
In french: Compression
HFSQL Client/ServerAvailable only with this kind of connection
The Compression property is used to manage data compression during a connection (HFSQL Client/Server, etc.). You can:
  • Find out whether the connection transmits compressed data.
  • Define whether the data transmitted between the server and the client must be compressed. In this case, if the connection is currently opened, it will be closed and reopened with the new parameters during the first access to a file that uses this connection.
Reminder: The compression of data is used to reduce the volume of data flowing through the transmission media (this feature is interesting for the transmissions invoiced according to the volume of data transmitted). The data compression is supported from version 14 of the HFSQL server. For more details, see Compressing frames.
Remark: The connection can correspond to:
Example
MyConnection is Connection
// Describe the connection
MyConnection.User = "USER"
MyConnection.Password = "PASSWORD"
MyConnection.Server = "MYSERVER"
MyConnection.Database = "Test"
MyConnection.Provider = hAccessHFClientServer
MyConnection.Access = hOReadWrite
MyConnection.ExtendedInfo = "Extended information"
MyConnection.CursorOptions = hClientCursor
MyConnection.Compression = True
 
HOpenConnection(MyConnection)
Syntax

Finding out whether the connection transmits compressed data Hide the details

<Result> = <Connection>.Compression
<Result>: Boolean
  • True if the transmitted data is compressed,
  • False if the transmitted data is not compressed.
Remark: Compression management is available from version 14 of the HFSQL server.
<Connection>: Character string or Connection variable
Name of the connection used. This name was defined:

Defining the data compression for a connection Hide the details

<Connection>.Compression = <Data compression>
<Connection>: Character string or Connection variable
Name of the connection used. This name was defined:
<Data compression>: Boolean
  • True to compress the data,
  • False not to compress the data.
Remark: Compression management is available from version 14 of the HFSQL server.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/25/2022

Send a report | Local help