On 12/30/05 6:19 PM, "Chuck Pelto" <cbpelto /at/ pcisys D.O.T 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]
_______________________________________________ Valentina mailing list Valentina@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina
©2005 Ruslan Zasukhin |