Another dump question

Joakim Schramm joakim at astrocalc.com
Thu Dec 7 23:38:30 CST 2006


 

> -----Original Message-----
> From: valentina-bounces at lists.macserve.net 
> [mailto:valentina-bounces at lists.macserve.net] On Behalf Of 
> Ruslan Zasukhin
> Sent: 07 December 2006 23:17
> To: valentina at lists.macserve.net
> Subject: Re: Another dump question
> 
> On 12/7/06 11:15 PM, "Joakim Schramm" <joakim at astrocalc.com> wrote:
> 
> > So what I think I must do then to get new db in while my program is 
> > running, first close db, then TrowOut and then Load dump, 
> again init 
> > table and field referenses, BUT don't need to do "set db = New 
> > Vdatabase" to create new db object. Is this correct?
> 
> Yes I think
> 
Ok I will see when I come to it if the code I have done works or not, it
will show.

I just thought of one thing, is VDatabase a "true" object in the sense so I
can do thing like this

Global db1 as Vdatabase
Global db2 as Vdatabase
...
Private Sub
Dim dbx as Vdatabase

If x <> 1 then
  Set dbx = db2
Else
  Set dbx = db1
End If

dbx.Close
dbx.ThrowOut
dbx.LoadDump 

And now if x = 1 then

db1.IsOpen = True|False ?

I mean if dbx becomes a copy ByReferense and directly point at and act on
db1|db2 members, you understand?

/Joakim
> --
> 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 at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
> 



More information about the Valentina mailing list