Application object
235
BrowseText
Syntax
BrowseText(sText, BaseHREF: OleVariant);
Description
Displays the passed text in the internal browser. Use the
BaseHREF
parameter to
interpret relative paths. For local files,
BaseHREF
is the folder that contains the file.
Example
function Main() {
Var sMessage;
sMessage = "You are viewing this text in the browse mode of your ";
sMessage = sM VersionText;
with (Application){
BrowseText (sMessage);
}
}
CloseAll
Syntax
CloseAll(wbPromptToSave: WordBool): WordBool;
Description
Closes all open documents. If
wbPromptToSave
is
True
, the user is prompted to save
any changes. Returns
True
if successful, that is, the user didn’t cancel if
wbPromptToSave
is
True
.
Example
function Main() {
with (Application){
CloseAll();
}
}
ExecCommand
Syntax
ExecCommand(nCmdID: integer, nOptions: integer);
Description
Boolean. Execute a specific command based on its CommandID. For available
commands, see
“Table of CommandID values” on page 310
. Use
nOptions
with
cursor movement commands to determine whether text is selected during cursor
movement (
nOptions = 1
) or unselected (
nOptions = 0
). For all other commands,
pass
nOptions = 0
.
Example
function Main() {
with (Application){
ExecCommand(3); // Executes an Open File command.
}
}
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...