218
NextDoc
Syntax
NextDoc();
Moves to the next document in the Document tab. If the last document is showing,
Description
wraps to the first.
Example
function Main() {
Var sMessage;
sMessage = "Hello world!";
with (Application) {
NewDocument(false);
NextDoc();
ActiveDocument.InsertText(sMessage);
}
}
PreviousDoc
Syntax
PreviousDoc();
Moves to the previous document in the Document tab. If the first document is
Description
showing, wraps to the last.
Example
function Main(){
with (Application){
// Create a new blank document
NewDocument(false);
// Move back to previous file
PreviousDoc();
}
}
Quit
Syntax
Quit();
This method attempts to exit from or quit the program. It prompts the user to save
Description
any unsaved documents prior to quitting.
Example
function Main(){
var MB_YESNO = 4;
var IDYES = 6;
with (Application){
if (MessageBox('Exit HomeSite?', 'Confirmation Message',
}
newly-created document
MB_YESNO) == 6){
Quit();
Chapter 14 Scripting the Visual Tools Object Model
// Moving to the
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?