Monday, November 08, 2010 at 12:02 AM.

on enable (f, flEnabled) {
	<<Enable or disable a tool. At the top level of a gdb is a boolean named #enabled.
		<<01/05/01; 5:16:47 PM by PBS
		<<10/7/01; 8:33:33 PM by JES
			<<Store an flEnabled flag in the tool's user table, when enabling or disabling a tool.
	on setBoolean () {
		local (toolName = (file.fileFromPath (f)));
		if defined ([toolName]) {[toolName].flEnabled = flEnabled};
		[f].["#enabled"] = flEnabled};
	if not defined ([f]) { //open the close the gdb (f, true);
		setBoolean (); (f);
		fileMenu.close ()}
	else {
		setBoolean ()};
	return (true)}

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.