docs

Home All functions Categories

vuCRC32(Filename)

vuCRC32(*CSTRING), LONG

Description

Calculates a 32-bit CRC (Cyclic Redundancy Check) for the provided parameter. If the parameter is a valid file path, the CRC is calculated on the file contents. Otherwise, the CRC is calculated on the provided value.

Parameters

Parameter Data Type Description
Filename CSTRING(512) Fully qualified file path (drive, path, filename) or a value to calculate CRC against

Returns

A ULONG containing the CRC32 value.

Example

LOC:FileName = 'C:\Valutilities\Test.tps'
MESSAGE('CRC32 = ' & vuCRC32(LOC:FileName))
Home All functions Categories