Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
sComputeCrc32 (Function)
In french: sCalculeCrc32
Calculates the Cyclical Redundancy Check (CRC) of buffer.
Remark: The CRC is equivalent to a buffer signature. Any modification made to the buffer changes the CRC value. The use of CRC allows you to detect the possible file modifications during a transfer via network. You can compare the CRC of the file before and after transmission. If they are identical, the file was probably not modified during the transfer.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
// Calculates the CRC of a string
CRC is int
CRC = sComputeCrc32(MyString)
// Transmits the string and the CRC
// Check the integrity of string
IF sComputeCrc32(MyString) <> CRC THEN Info("Modified string")
<Result> = sComputeCrc32(<Buffer> [, <Partial CRC>])
<Result>: Integer
Control value of string (CRC)
<Buffer>: Buffer or character string (with quotes)
String or buffer used to calculate the control value (CRC)
<Partial CRC>: Optional integer
Result of a previous CRC calculation. This parameter is used to calculate the CRC of two buffers in a row: there is no need to concatenate the buffers. This parameter corresponds to 0 (a single buffer is managed) by default.
PHP This parameter is ignored. A single buffer is managed.
The sComputeCrc32 function is identical to the sComputeCrc16 function, but is faster and more efficient.
Business / UI classification: Business Logic
Component: wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment