Re: How to represent category, subcategory, product
From: Neo <neo55592_at_hotmail.com>
Date: 23 Nov 2006 09:46:42 -0800
Message-ID: <1164304002.431622.10820_at_j72g2000cwa.googlegroups.com>
Date: 23 Nov 2006 09:46:42 -0800
Message-ID: <1164304002.431622.10820_at_j72g2000cwa.googlegroups.com>
> is'nt the risk of adding new subclasses by mistake
> (example sedan, Sedan sEdan, etc), another disadv. ?
Via the new function, such a mistake is possible. The new function creates a new thing, names it and classifies it as specified (ie sedan). If the specified class (ie sEdan) does not exist, it will create it.
To avoid this situation, use the following method:
(new 'vehicle8)
(set sedan instance vehicle8)
Via above method, the following will not be accepted ... (set sEdan instance vehicle8)
... and dbd prompts user with "What is sEdan?"
For more info, see www.dbfordummies.com/nli/new.asp Received on Thu Nov 23 2006 - 18:46:42 CET