ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous Windows functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Checks a character string before and after transmission between WINDEV applications and WEBDEVsites.
This function is used to check whether a character string was properly transmitted between WINDEV applications and WEBDEV websites during transmissions with risk of information loss (modem for example). To do this, simply calculate the "Crc16" before transmitting the chain, then check its value when the chain is received: the two values must be identical.
Example
nCrcLu is int	// Caractère de contrôle lu
LigneLue is string	// Chaîne lue
...
IF nCrcLu <> sComputeCrc16(LigneLue) THEN
	Info("Erreur lors de la récupération de la chaîne")
END
Syntax
<Result> = sComputeCrc16(<String>)
<Result>: Integer
Control value of the string.
<String>: Character string
Any character string.
Remarks
Java This function can return a different result in the WINDEV version. To improve the reusability to the code, we recommend that you use sComputeCrc32.
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: 03/27/2025

Send a report | Local help