JVCL Help:TJvPatchFile.Differences

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Patches (or file differences) to apply to the original file.


Pascal

 propertyDifferences: TStrings;


Description

Differences is a TStrings property that represents patches (or file differences) required to convert the file specified in StartFile to the desired content using the Patch method.
Values stored in Differences must be in the specific format required for the TJvPatchFile component. A design-time property editor is provided for the Differences property that can be used to create patches in the format required for use in the component. Patches for the specified files are encrypted using a Password provided at design-time.
Patches in the Differences property can be saved to a file for subsequent distribution and processing using the TJvPatchFile component.
When patches are applied using the Patch method, the updated file content can be overwritten in the original file or stored in a new file with the updated content. Applying patches in the Differences property requires the Password used when creating the list of file differences. Using a Password argument that is different than the value used to populate the Differences property will result in an unusable file after patches are applied.
Use StartFile to specify the file name with the content to be patched using the values in Differences.
Use EndFile and ChangeInFile to indicate where the patched contents of the file indicated in StartFile should be stored. When ChangeInFile contains False, the value in EndFile is used to create a file the patch file content is stored. When ChangeInFile contains False, patches in the Differences property overwrite the original contents of the file specified in StartFile.
Assign values to the Differences property, or load the values from a file, to indicate the actions to perform in the Patch method.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page