
239
FileName
function FileName(nIndex: Integer): WideString
Returns the name of an existing archive file element (file/directory/volume) by index.
The index value can be from 0 to FileCount-1. The following code illustrates a loop over
the content of the archive looking for a specific file name:
function Main () {
var hsOKInfo = 64;
var app = Application;
var ZIPPro = app.ZIPProvider;
ZIPPro.ZipFile = ‘d:\\zipfiles\\test.zip’;
// Loop through the contents of the ZIP file
for ( x = 0; x < ZIPPro.FileCount; x++ ) {
if ( ZIPPro.FileName(x) == 'cfabort.vtm' ) {
app.MessageBox( "File found in the
archive.","ZIPProvider", hsOKInfo);
}
}
}
FileSize
function FileSize(nIndex: Integer): Double
Returns the size of an existing archive file element (file/directory/volume) by index.
The index value can be from 0 to FileCount-1.
FileIsVolume
function FileIsVolume(nIndex: Integer): WordBool
Use this function to determine whether a specific element in an archive is a volume
label. The index value can be from 0 to FileCount-1.
Содержание COLDFUSION STUDIO 4.5-USING COLDFUSION...
Страница 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Страница 16: ...xvi Contacting Allaire...
Страница 90: ...82...
Страница 130: ...122...
Страница 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Страница 182: ...190...