274
Chapter 14 Scripting the Visual Tools Object Model
FileIsReadOnly
Syntax
FileIsReadOnly(nIndex: Integer): WordBool;
Description
Boolean. Use this function to determine whether a specific element in an archive is
read-only. The
index
value can be from
0
to
FileCount-1
.
FileIsHidden
Syntax
FileIsHidden(nIndex: Integer): WordBool;
Description
Boolean. Use this function to determine whether a specific element in an archive is a
hidden file. The
index
value can be from
0
to
FileCount-1
.
FileIsSystem
Syntax
FileIsSystem(nIndex: Integer): WordBool;
Description
Boolean. Use this function to determine whether a specific element in an archive is a
system file. The
index
value can be from
0
to
FileCount-1
.
FileIsVolume
Syntax
FileIsVolume(nIndex: Integer): WordBool;
Description
Boolean. 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
.
FileName
Syntax
FileName(nIndex: Integer): WideString;
Description
Returns the name of an existing archive file element (file/directory/volume) by
index. The
index
value can be from
0
to
FileCount-1
.
Example
Sample FileName script
//**********************************************//
// This 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’;
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...