Using BDS Architect trial...
I would like to use the initial attribute of my ECO objects to ensure that
the objects are properly initialized. However, it is not clear to me from
the sparse documentation as to what ECO expects to appear in this attribute.
Is this intended to be a C# initializer or an initializer that will work in
the database?
If the object is a DateTime and I would like to use something equivalent to
"now()" what would that be?
Thanks in advance for your help with an elementary question...
==
Mark Cashman
> Hi, all!
>
> Using BDS Architect trial...
>
> I would like to use the initial attribute of my ECO objects to ensure
> that the objects are properly initialized. However, it is not clear
> to me from the sparse documentation as to what ECO expects to appear
> in this attribute. Is this intended to be a C# initializer or an
> initializer that will work in the database?
The InitialValue is a string that should parse to the kind of attribute
you have declared. you should not surround string-values with quotes
(unless you want quotes in your value).
This will not be used as the default db value (there is a separate
tagged value for that, called "DefaultDbValue" :-)
> If the object is a DateTime and I would like to use something
> equivalent to "now()" what would that be?
This is unfortunately not possible to do with InitialValue, you have to
set that in the constructor of the object.
--
/Jonas, Borland Eco R&D
"Jonas Hogstrom" <jonas.ho...@spam.please.borland.com> wrote in
message news:441e69d7$1...@newsgroups.borland.com...