MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual page 235

Table of Contents

Advertisement

Application Object
Example
function Main() {
Var sInput;
Var sOutput;
with (Application) {
sInput = InputBox(VersionText, "What is your name?", "Alex");
sOutput
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);
}
}
OpenFile
Syntax
OpenFile(const wsFile: WideString): WordBool;
Boolean. Opens the passed file. Returns if the file opens or is already open. Passing
Description
an empty string to
user to select the files to open.
When using this method in JScript, you must escape backslashes inside a string. For
example, in
backslash is preceded by an additional backlash.
Example
function Main() {
Var sFile;
Var bResult;
sFile = "C:\\Temp\myDoc.txt"
with (Application) {
MessageBox("File opened successfuly.", VersionText);
MessageBox("File does not exist or already open.", VersionText);
}
}
= "I know you, your name is " + sInput + ".";
displaysthe Open File dialog box, which enables the
OpenFile
Application.OpenFile("C:\\Documents\\MyFile.htm")
If(OpenFile(sFile))
Else
217
; each

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents