Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.mainResponder.discuss.getMessageTable
on getMessageTable (msgNum, pta=nil, adrRoot=nil) {
<<Get the address of a message table, given a msgNum.
<<Changes:
<<8/2/1999; 3:05:28 PM by PBS
<<New optional parameter pta, the address of the current page table.
<<New optional parameter adrRoot, the address of this discussion group.
if adrRoot == nil { //get the address of this discussion group
if pta == nil { //get the address of the page table
try {pta = html.getPageTableAddress ()}};
adrRoot = mainResponder.discuss.openRoot (pta)}; //get the address of this discussion group
return (@adrRoot^.messages.[string.padWithZeros (msgNum, 7)])}; //return the address of this message
bundle { //debugging code
msg (mainResponder.discuss.getMessageTable (1, @userlanddiscuss))}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.