On Sep 18, 2006, at 10:52 AM, Phil M wrote:
On Sep 18, 2006, at 10:50 AM, Mars Saxman wrote:
Since the Language Reference does not have details on
Enumerators, how do you define an item to have a specific value?
You simply enter it with an equals sign, like you would with a
constant:
item = value
Basically I want to add an item with a value of -1 whereas all of
the other values are positive. Since I am already storing existing
values in a database, how do I assure that the existing values do
not change?
If you don't specify the value of an enumeration constant, it will
adopt the value of the previous item, plus one. If you don't specify
the value of the first constant in the enumeration, it will be equal
to zero.
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>