[ATTN!] Inform us about your show-stoppers bugs in 2.4 betas if any!

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 7 20:32:06 CDT 2006


On 7/7/06 1:39 AM, "Dave Addey" <listmail1 at dsl.pipex.com> wrote:

Hi Dave,

> The bug I reported today - Mantis 0001675 - is a showstopper for us.  We
> can't implement our new iPod support without it being fixed.

Okay, so I check your project attached to 1675

------------------------------------------------
  // create a database
  theDatabaseFile = SpecialFolder.Desktop.Child("TestDatabase1")
  if theDatabaseFile.Exists then theDatabaseFile.Delete // delete the file
if it already exists
  TestDatabase1 = New myDatabase
  TestDatabase1.Create(theDatabaseFile, EVDbMode.kDscDatBlbInd, 32 * 1024)
  
  // create a second database
  theDatabaseFile = SpecialFolder.Desktop.Child("TestDatabase2")
  if theDatabaseFile.Exists then theDatabaseFile.Delete // delete the file
if it already exists
  TestDatabase2 = New myDatabase
  TestDatabase2.Create(theDatabaseFile, EVDbMode.kDscDatBlbInd, 32 * 1024)
------------------------------------------------

Okay, so you use Class - way

And now you do:
  
------------------------------------------------
  // drop a table from one of the databases
  TestDatabase1.DropTable TestDatabase1.TestTable  <<<< so so, danger

  // and create it again
  TestDatabase1.TestTable = New myTable        <<<<<<<<< WRONG
------------------------------------------------

OPS. This is wrong code of course!!!

You cannot MODIFY so easy structure of db if you use Class way.
Class way -- this is FIXED structure.
Read about this docs.

DropTable, CreateTable() should be used only in API way.



-- 
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