Application Object - MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual

For windows 95/98/nt4/2000
Table of Contents

Advertisement

194

Application Object

You can script the Application object's child objects to perform common tasks and to
create toolbars dynamically.
General properties
ActiveDocument (object, read-only)
The active document. See "ActiveDocument Object" on page 218 for details.
ApplicationType (integer, read-only)
The current application type.
0 - HomeSite
1 - ColdFusion Studio
2 - JRun Studio
The following script code can be used to test for the application type:
/*
*/
function Main(){
}
Tests Application.ApplicationType property
0 = HomeSite
1 = CF Studio
2 = JRun Studio
var iAppType;
var sMessage;
with (Application) {
if (IsColdFusionStudio)
MessageBox('IsColdFusionStudio returns True', 'Application
Type', 0)
else
MessageBox('IsColdFusionStudio returns False', 'Application
Type', 0);
iAppType = ApplicationType;
switch(iAppType) {
case 0: {
sMessage = 'HomeSite';
}
case 1: {
sMessage = 'ColdFusion Studio';
}
case 2: {
sMessage = 'JRun Studio';
}
default: {
sMessage = 'an unknown application type';
}
}
MessageBox('You are enjoying ' + sMessage + '.',
'Application Type', 0);
}

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents