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:
/*
Tests Application.ApplicationType property
0 = HomeSite
1 = CF Studio
2 = JRun Studio
*/
function Main(){
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 ' + sM '.',
'Application Type', 0);
}
}
Содержание COLDFUSION STUDIO 4.5-USING COLDFUSION...
Страница 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Страница 16: ...xvi Contacting Allaire...
Страница 90: ...82...
Страница 130: ...122...
Страница 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Страница 182: ...190...