As a minimum you should:
 
make sure both pc's bde are pointing to the same netfile, and preferably have this in a separate subdir, e.g.
\appdir\data
\appdir\data\netdir
...
 
set localshare true on both pc's
 
on your app startup, set the session.netdir, and also set the session.privatedir for temp files.
 
e.g., in your datamodule.create before connecting the database and opening tables:
 
  dbMain.close;
  Session.open;
  s := DataDir + '\NetFile';
  ForceDirectories(s) ;
  Session.NetFileDir := s;    // shared dir under data dir on server
  Session.PrivateDir := FileUtil.GetTempDir;  // users local drive for temp files
  dbMain.Params.Clear;
  dbMain.Params.Values['PATH'] := DataDir;
  dbMain.Open;
  OpenTables(self);
...
 
 
 
regards,
Steve
-----Original Message-----
From: Laurie Bisman [mailto:[EMAIL PROTECTED]]
Sent: Monday, 18 June 2001 23:02
To: Multiple recipients of list delphi
Subject: [DUG]: Multi user data

Using D5 and want to set up a program on two peer-to-peer PC's to use the same Paradox table. How do I configure the BDE? and are there any pitfalls to avoid?
 
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤
        Laurie Bisman - New Zealand
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤

Reply via email to