Application object
245
Example
function Main() {
Var sInput;
Var sOutput;
with (Application) {
sInput = InputBox(VersionText, "What is your name?", "Alex");
sOutput = "I know you, your name is " + ".";
MessageBox (sOutput, VersionText, 0);
}
}
NewDocument
Syntax
NewDocument(wbUseDefaultTemplate: WordBool);
Description
Boolean. Creates a new document, optionally from the default template.
Example
function Main(){
with (Application){
NewDocument(true);
}
}
NextDoc
Syntax
NextDoc();
Description
Moves to the next document in the Document tab. If the last document is showing,
wraps to the first.
Example
function Main() {
Var sMessage;
sMessage = "Hello world!";
with (Application) {
NewDocument(false);
NextDoc();
ActiveDocument.InsertText(sMessage); // Moving to the
newly-created document
}
}
OpenFile
Syntax
OpenFile(const wsFile: WideString): WordBool;
Description
Boolean. Opens the passed file. Returns
True
if the file opens or is already open.
Passing an empty string to
OpenFile
displays the Open File dialog box, which
enables the user to select the files to open.
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...