Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us

FlexCompress.OnStoreFile

FlexCompress

Previous  Top  Next

Occurs when file is being stored into the archive.

 

[C#]
public event OnStoreFileDelegate OnStoreFile;

public delegate void OnStoreFileDelegate(object sender, ref string fileName, ref System.IO.FileAttributes fileAttr, ref string comment, string originalFileName);

 

[VB.NET]

Public Event OnStoreFile As OnStoreFileDelegate

Public Delegate Sub OnStoreFileDelegate(ByVal sender As Object, ByRef fileName As String, ByRef fileAttr As Long, ByRef comment As String, ByVal originalFileName)

 

Description

 

Write an OnStoreFile event handler to override default file name or change its attributes before storing this file into the archive.

The event is fired when AddFiles is called.

 

The Sender parameter is the object whose event handler is called. 

 

FileName specifies the stored name of the file being added to archive (for ex. 'folder1\test.txt').

 

FileAttr specifies file attributes.

 

Comment specifies the file comment to be stored.

 

OriginalFileName specifies the source file name of the file being stored (for ex. "c:\folder1\test.txt").

 

 

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 21, 2024