Board index » delphi » Paradox and network

Paradox and network

I have two computers with W95 net:

1. data + BDE + program (Delphi)
2. BDE +  same program, data from first computer.

if I change data in first computer, second computer can see changes only

after quiting program in first computer. I use Refresh.

Where is error? Is there any function for flushing changes to disk in
BDE?

Thanks, Ales.

P.S. Sorry, my English in not good.......... :-(((((

 

Re:Paradox and network


This is a multi-part message in MIME format.
--------------4B1FDEA1F2A5A5A727CC371A
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi !!!!!!!

yes, exist a function for flush changes: DbiSaveChanges(Table1.Handle), use
this in your table.beforepost method, add BDE to your USES.
set the local share of both machine to true
the netfiledir must be the same in all client

HTH
Alessandro
from Brazil

Quote
Ales Radikovsky wrote:
> I have two computers with W95 net:

> 1. data + BDE + program (Delphi)
> 2. BDE +  same program, data from first computer.

> if I change data in first computer, second computer can see changes only

> after quiting program in first computer. I use Refresh.

> Where is error? Is there any function for flushing changes to disk in
> BDE?

> Thanks, Ales.

> P.S. Sorry, my English in not good.......... :-(((((

--
Alessandro Feij
mailto:fe...@iname.com
homepage: http://www2.plug-in.com.br/~feijo

--------------4B1FDEA1F2A5A5A727CC371A
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Alessandro Feijo
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Alessandro Feijo
n:              Feijo;Alessandro
org:            Sial Software
adr:            ;;;;;;Brazil
email;internet: fe...@iname.com
title:          Programer
tel;work:       (051)342-3020
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard

--------------4B1FDEA1F2A5A5A727CC371A--

Re:Paradox and network


When you use the BDE with Paradox tables on a peer-to-peer network you
_must_ have the Local Share property set to True in the BDE
Administrator.  That is the cause of your problem.

Bill

(Sorry but TeamB cannot answer support questions received via email.              )
(To send me email for any other reason change "cis" to "compuserve" in my address.)

Re:Paradox and network


Hi,

Are you using DbiSaveChanges table.BEFOREPOST ??
I'm always using it AFTERPOST , what's better or right ??
Greetings
Werner

Quote
Alessandro Feijo wrote:

> Hi !!!!!!!

> yes, exist a function for flush changes: DbiSaveChanges(Table1.Handle), use
> this in your table.beforepost method, add BDE to your USES.
> set the local share of both machine to true
> the netfiledir must be the same in all client

> HTH
> Alessandro
> from Brazil

> Ales Radikovsky wrote:

> > I have two computers with W95 net:

> > 1. data + BDE + program (Delphi)
> > 2. BDE +  same program, data from first computer.

> > if I change data in first computer, second computer can see changes only

> > after quiting program in first computer. I use Refresh.

> > Where is error? Is there any function for flushing changes to disk in
> > BDE?

> > Thanks, Ales.

> > P.S. Sorry, my English in not good.......... :-(((((

> --
> Alessandro Feij
> mailto:fe...@iname.com
> homepage: http://www2.plug-in.com.br/~feijo

>     ---------------------------------------------------------------

>                              Name: vcard.vcf
>             Part 1.2         Type: text/x-vcard
>                          Encoding: 7bit
>                       Description: Card for Alessandro Feijo

Re:Paradox and network


Thank you for your help.  I'm let you know if it kills the problem.

Bill Todd (TeamB) <Bill_T...@cis.com> wrote in article
<344e9c58.2600...@forums.borland.com>...

Quote
> When you use the BDE with Paradox tables on a peer-to-peer network you
> _must_ have the Local Share property set to True in the BDE
> Administrator.  That is the cause of your problem.

> Bill

> (Sorry but TeamB cannot answer support questions received via email.    
        )
> (To send me email for any other reason change "cis" to "compuserve" in my
address.)

Re:Paradox and network


Quote
Ales Radikovsky wrote:

> I have two computers with W95 net:

> 1. data + BDE + program (Delphi)
> 2. BDE +  same program, data from first computer.

> if I change data in first computer, second computer can see changes only

> after quiting program in first computer. I use Refresh.

> Where is error? Is there any function for flushing changes to disk in
> BDE?

> Thanks, Ales.

> P.S. Sorry, my English in not good.......... :-(((((

Hello,  Set LOCAL SHARE to TRUE in the BDE Config.

 Scott
--
BDE Support:
 http://www.borland.com/devsupport/bde
Delphi Support:
 http://www.borland.com/devsupport/delphi
Common Delphi and BDE Questions and Answers:
 http://www.borland.com/devsupport/delphi/qanda/delphi3qa.html

Re:Paradox and network


Quote
Alessandro Feijo wrote:
> Hi !!!!!!!

> yes, exist a function for flush changes:
> DbiSaveChanges(Table1.Handle), use
> this in your table.beforepost method, add BDE to your USES.
> set the local share of both machine to true
> the netfiledir must be the same in all client

> HTH
> Alessandro
> from Brazil

> Ales Radikovsky wrote:

> > I have two computers with W95 net:

> > 1. data + BDE + program (Delphi)
> > 2. BDE +  same program, data from first computer.

> > if I change data in first computer, second computer can see changes
> only

> > after quiting program in first computer. I use Refresh.

> > Where is error? Is there any function for flushing changes to disk
> in
> > BDE?

> > Thanks, Ales.

> > P.S. Sorry, my English in not good.......... :-(((((

Does it seem correct that once BDE is added to the uses clause that any
'Abort' calls (i.e., to stop a post / or confirm) no longer will compile
- 'statement expected, but expression of type integer found'.  If I
remove the BDE call then the 'Abort's work again - but I need the BDE
call to implement oyur suggestion.   Any ideas?
Thank you

Re:Paradox and network


Paul

Quote
> Does it seem correct that once BDE is added to the uses clause that any
> 'Abort' calls (i.e., to stop a post / or confirm) no longer will compile
> - 'statement expected, but expression of type integer found'.  If I
> remove the BDE call then the 'Abort's work again - but I need the BDE
> call to implement oyur suggestion.   Any ideas?
> Thank you

Change your call to SysUtils.Abort -- it will work again.  There is another
procedure called abort in one of the BDE units.

Mike

Re:Paradox and network


Try using the dbiSaveChanges function in the AfterPost event of your
Table
components.  You will need to include BDE in the Uses clause of your
.pas file.

Other Threads