Application Object
221
Example
function Main(){
var sFolder1 = ’C:\\Program Files\\Bradbury\TopStyle2’;
var sFolder2 = ’C:\\InetPub\\wwwroot’;
with (Application) {
SetFileTabFolder(1, sFolder1);
SetFileTabFolder(2, sFolder2);
}
}
SetProgress
Syntax
SetProgress(nProgress: Integer);
Description
Sets the position of the progress bar in the status area.
The following values are allowed:
1-100.
Example
function Main() {
with (Application) {
SetProgress (15);
}
}
SetStatusText
Syntax
SetStatusText(sMessage: OleString);
Description
Sets the text that displays in the status area.
Example
function Main() {
with (Application) {
SetStatusText("Progress Indicator: ");
}
}
ShellToApp
Syntax
ShellToApp(const wsAppFileName: WideString): WordBool;
Description
Executes an external application. Returns
True
if application launched successfully.
You can include command lines in the file name parameter, so the following syntax is
valid:
Application.ShellToApp("notepad.exe " +
Application.ActiveDocument.Filename)
Содержание 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...