User Guide
220 Chapter 14 Scripting the Visual Tools Object Model
SetActiveCodeSweeper
Syntax SetActiveCodeSweeper(const wsFileName: WideString): WordBool;
Description Changes the active CodeSweeper format file.
Example
function Main(){
var sCS_File = ’C:\\Program Files\\Macromedia\\ColdFusion Studio
5\\Extensions\\CodeSweepers\\WebXML.vtm’;
with (Application){
SetActiveCodeSweeper(sCS_File);
}
}
SetActiveResults
Syntax SetActiveResults(resType: TCurrentResultsType);
Description Boolean. Sets the active page in the Results tab.
The following values are allowed:
resSearch
resValidator
resLinks
resThumbnails
Example function Main() {
with (Application) {
SetActiveResults ();
}
}
SetApplicationSetting
Syntax SetApplicationSetting(nSettingID: Integer ovSettingVal: OleVariant);
Description Sets a specific application setting based on its SettingID.
Example
function Main(){
var SET_EDITOR_FONTNAME= 300;
with (Application){
SetApplicationSetting(SET_EDITOR_FONTNAME, ’Lucida Console’);
}
}
SetFileTabFolder
Syntax SetFileTabFolder(iTab: integer; sFolder: string);
Description Sets the active folder for each of the Files tabs.