Automatic Data Entry
Peter De Berdt
peter.de.berdt at pandora.be
Thu Oct 28 10:26:07 CDT 2004
On 28 Oct 2004, at 10:00, Ruslan Zasukhin wrote:
> On 10/28/04 10:22 AM, "Peter De Berdt" <peter.de.berdt at pandora.be>
> wrote:
>
>>>
>> I don't know how the Valentina plug-in handles things (and I don't
>> have
>> a problem with maintaining a correct database structure myself, my
>> classes handle this), but let me give you an example:
>>
>> SchemaVersion 1
>> MyVDatabase
>> -> MyBaseObject1
>> • MyField1 as VVarchar
>> • MyField2 as VULong
>> • MyField3 as VDouble
>>
>> SchemaVersion 2
>> MyVDatabase
>> -> MyBaseObject1
>> • MyField1 as VVarchar
>> • MyField2 as VLong
>> • MyField3 as VDouble
>> • MyField4 as VString
>>
>> What you have to do now, is before creating an instance of
>> MyVDatabase,
>> open up that database as a generic VDatabase, then create the new
>> field, alter the type of MyField2, then close the database again,
>> instantiate a MyVDatabase and then start working with your database.
>
> But instance we create BEFORE do open
>
> db = new myDatabase
>
Wouldn't it be possible to check the database file on opening then?
Best regards
Peter De Berdt
More information about the Valentina
mailing list