table.getRootAddress
| Syntax |
table.getRootAddress (adr)
|
| Params |
adr is the address of some object in an object database.
|
| Action |
Determine the address of the root of the database containing the object.
|
| Returns |
The address of the root of the database containing adr.
|
| Errors |
The object must exist, if it doesn't it's an error.
|
| Examples |
table.getRootAddress (@["C:\\Palm Springs\\Websites\\davenet.root"].["97"].["05"].Programmers) » @["C:\\Palm Springs\\Websites\\davenet.root"]
table.getRootAddress (this) //a very likely use of this verb
table.getRootAddress (@suites) //it's in Frontier.root
table.getRootAddress (@doesNotExist) //an error |
| Notes |
Use this verb to navigate from the root of the database containing the script that's running. This works much better than hard-coding addresses. Created 10/11/98; 6:00:55 AM by DW.
|