Signature (Visual Basic / VBA)
Public Function Checksum8File( _
ByVal vFileName As Variant _
) As Variant
Code Example
Assuming
Checksum8("ABCD") = Chr$(10)
StringToFile("ABCD", "C:\Test.Out") = True
for example
Checksum8File("C:\Test.Out") = Chr$(10)
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
| v1.1 Change | Function changed to return the checksum as a one-character String instead of an Integer in order to be consistent with the Checksum8 function. |