Monday, November 08, 2010 at 12:03 AM.
system.verbs.builtins.html.table.new
on new (border=0, cellspacing=0, cellpadding=0, cols=1, method="html") {
<<Create a new Frontier table that will later be rendered.
local (adrStorage = @system.temp.html);
if not defined (adrStorage^) {
new (tableType, adrStorage)};
local (adrTables = @adrStorage^.tables);
if not defined (adrTables^) {
new (tableType, adrTables)};
local (adrTable = @adrTables^.[string (thread.getCurrentID ())]);
new (tableType, adrTable);
adrTable^.border = border;
adrTable^.cellspacing = cellspacing;
adrTable^.cellpadding = cellpadding;
adrTable^.method = method;
new (tableType, @adrTable^.rows);
new (tableType, @adrTable^.columns);
return (adrTable)}
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.