Application Object
211
GetRelativePath
Syntax
GetRelativePath(const wsBaseURL, wsFolderURL: WideString): WideString;
Description
Returns the relative path of a folder given a base URL. For example,
GetRelativePath ("http://www.macromedia.com/", "http://
www.macromedia.com/software/")
returns "products/".
Example
function Main() {
Var sFullPath1;
Var sRelativePath;
Var sFullPath2;
sFullPath1 = "http://www.macromedia.com/";
sFullPath2 = "http://www.macromedia.com/software";
with (Application){
sRelativePath = GetRelativePath (sFullPath1,sFullPath12);
}
}
GetTabIndexForFile
Syntax
GetTabIndexForFile(const wsFile: WideString): Integer;
Description
Returns the index in the document tab of the passed file. Returns
-1
If the file is not
open.
Example
function Main(){
var iIndex;
with (Application){
// Switch to index.htm if it is open
iIndex = GetTabIndexForFile(’D:\\Test\\index.html’);
if (iIndex > 0){
DocumentIndex = iIndex;
}
}
}
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...