wodFtpDLX ActiveX Control - LocalCRC Method
      
 

Description

Calculates integrity check of local file.


Return Type

A String value.  Returns calculated value.


Syntax

object.LocalCRC Type, LocalPath, [FileStart], [FileLength]



The LocalCRC Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodFtpDLX.
Type A IntegrityCheckEnum enumeration. Determines type of integrity check algorithm used.
LocalPath A String value. Holds full path to a file on local system.
FileStart Optional. A Variant value. Integer value that represents starting position in the file for calculating CRC.
FileLength Optional. A Variant value. Integer value that represents length of data in the file where CRC is calculated.

Remarks

LocalCRC method will calculate checksum of local file using any of supported algorithms (CRC, MD5...). For CRC it will be a long value represented in HEX characters (such as ABCDEF01), for MD5 hash it will be 16 HEX numbers (meaning 32 ASCII chars as its readable representation), and for SHA1 it will be 20 HEX numbers. Please note that not many servers support these functions. CRC is most widely supported, so you should use that method if you're unsure how good remote FTP server is.