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

Table of Contents

Advertisement

Application Object
Sample toolbar script 2
//*************************************************************//
// This script creates a toolbar which is capable of executing
// all of the scripts contained in the Document Cache
//*************************************************************//
function Main () {
var sToolBarName;
var Result;
var count;
var fname;
var fnamepath;
with (Application) {fnamepath
}
}
sToolBarName = InputBox (VersionText, "Enter the Toolbar name.",
"MyToolbar");
while (ToolbarExists(sToolBarName) != 0){
sToolBarName = InputBox (VersionText, "Please chose another
name.", "MyToolbar");
}
CreateToolbar (sToolBarName);
ShowToolBar(sToolBarName);
count = 0;
while (count <= (DocumentCount-1)){
fnamepath = DocumentCache(count).FileName
fname = ExtractFileName(fnamepath);
AddScriptToolbutton (sToolBarName, fnamepath, fname, count,
"");
count ++;
}
229

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion studio 5

Table of Contents