Won't Run Second Time

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Dec 30 18:27:02 CST 2005


On 12/30/05 6:19 PM, "Chuck Pelto" <cbpelto at pcisys.net> wrote:

>> I wonder if the problem isn't your use of dbDatabase.CreateStructure
>> ().  For subclasses of VDatabase, you build the database structure
>> in the constructor.  It looks like you call
>> dbDatabase.CreateStructure() after creating the database, but not
>> when the database is opened next time. Try eliminating the
>> CreateStructure call from the App.Open code, and instead move it
>> into cDatabase.Constructor.
> 
> Do we have to use a constructor during an Open call to an already
> existing database? I was understood that an existing and valid
> database structure would be recognized on .Open().

    mydb = new MyDatabase       <- this call chain of constructors

    mydb.Open()

 
> The dbDatabase.CreateStructure() is the Constructor() call in this
> app. I did that based on the Lesson1 example (see Window1 Methods).

Wrong. 

Lesson1 demonstrate API Style.

You need to check folder Examples/Class_way


> Moving that call to the Constructor will never have the Constructor
> called.
> 
> I could be mistaken in my understanding of the Constructor(), but as
> I said, it was based on Lesson1. [Note: Another example of what Ed
> and I have been talking about regarding a need for better
> documentation.]

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list