Right, but the default is presumed to be BDE right? In any case, I think that is what he is using. If the NetDir is the same on all workstations the BDE driver should be able to detect the locked state on the table and give an exception. In any case, he is getting one and just needs to code to catch it before the user sees it.
  
  Dave

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
  Hi David,
even with dbase you coud have the chance of editing the same record from
different workstations, but there will be no real solution for this situation.
TTable is just Delphi's layer to encapsule the access to *any* database.
Normally, transactions are used to isolate simultaneous acces from each other, but
that will only work, if the underlying database supports that.

Have fun!
Bob

>       
>          I believe that event will have the variable you need to use to catch the error. Look in its parameter list to see if there's somekind of E
>     or Error variable. Then you use a Try except around it. Look up examples on using try except and you should find some error code
>     examples.
>       
>       Dave
>    
>     "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>       Hi Thomas,
>     as usual "it depends".
>     Which Database do you use? A "normal" SQL Client / Server RDB (as Firebird or Interbase) is able to handle that automatically.
>     So, which Delphi version and which DB you are talking about.
>    
>     Have fun
>     Bob
>    
>    
>     >     
>     >     I am working on a multiuser application.  One of my problems is record
>     >     locking, specifically when one user is editing a blob field and another
>     >     is editing the same record.
>     >     
>     >     I am guessing that I need to put some code in the Edit error event but
>     >     there is no example in the Delphi help file so I can only guess how to
>     >     use it correctly.
>     >     
>     >     Can some one give me an example on how to trap a record locking error
>     >     using this event?  Also what do you recommend for help in understanding
>     >     the complexities of multiuser databases?
>     >     
>     >     Thanks in advance!
>     >     
>     >     Tom Nesler
>     >     Live long!...   Code Well!...   and Prosper!...   V
>     >    
>     >    
>     >     [Non-text portions of this message have been removed]
>     >    
>     >    
>     >    
>     >     -----------------------------------------------------
>     >     Home page: http://groups.yahoo.com/group/delphi-en/
>     >     To unsubscribe: [EMAIL PROTECTED]
>     >     Yahoo! Groups Links
>     >    
>     >    
>     >    
>     >     
>     >    
>     >    
>    
>    
>    
>     -----------------------------------------------------
>     Home page: http://groups.yahoo.com/group/delphi-en/
>     To unsubscribe: [EMAIL PROTECTED]
>    
>    
>        
>     ---------------------------------
>       YAHOO! GROUPS LINKS
>    
>        
>         Visit your group "delphi-en" on the web.
>        
>         To unsubscribe from this group, send an email to:
>      [EMAIL PROTECTED]
>        
>         Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>    
>        
>     ---------------------------------
>      
>    
>    
>    
>                
>     ---------------------------------
>     Yahoo! Mail goes everywhere you do.  Get it on your phone.
>    
>     [Non-text portions of this message have been removed]
>    
>    
>    
>     -----------------------------------------------------
>     Home page: http://groups.yahoo.com/group/delphi-en/
>     To unsubscribe: [EMAIL PROTECTED]
>     Yahoo! Groups Links
>    
>    
>    
>     
>    
>    
>    



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]


   
---------------------------------
  YAHOO! GROUPS LINKS

   
    Visit your group "delphi-en" on the web.
   
    To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
   
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

   
---------------------------------
 



           
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

[Non-text portions of this message have been removed]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]




YAHOO! GROUPS LINKS




Reply via email to