Signature (Visual Basic / VBA)
Public Function Checksum32File( _
ByVal vFileName As Variant _
) As Variant
Code Example
Assuming
Checksum32("This is a test.") = 1315
StringToFile("This is a test.", "C:\Test.Out") = True
for example
Checksum32File("C:\Test.Out") = 1315
Parameters
| Parameter | Description |
|---|---|
| vFileName | Name of the file for which the checksum will be calculated. Function returns Null if vFileName is Null or cannot be fixed-up to a string. Function returns Null if there is any type of error, such as when the file does not exist. |
Notes & Version History
| Note | Checksum32File returns a Double (precision floating-point) value that happens to be a non-negative integer, while Checksum32 returns a Long (Integer) value. |