ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous Windows functions
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
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 sites during transmissions with risk of information loss (modem for example). To do so, calculate the "Crc16" value before transmitting the string and check its value when receiving the string: the two values must be identical.
Example
nCrcRead is int // Control character read
LineRead is string // String read
...
IF nCrcRead <> sComputeCrc16(LineRead) THEN
Info("Error while retrieving the string")
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: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help