Application object
239
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;
}
}
}
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...