home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.paradox      To crash or not to crash, asks Borland      9,834 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,414 of 9,834   
   Jim Moseley to All   
   Re: Unlocking problem...   
   04 Apr 07 11:19:17   
   
   From: jmose@mapson.attglobal.net   
      
   Kenneth,   
      
   But that probably won't solve your problem. ;)   
      
   I'm guessing all of your code is in the Action() method at the form level.   
    The error occurs because it is trying to handle the unlock/post to the table,   
   and you are jumping in trying to change another field before it can complete.   
      
   The easiest way around this is to delay your update, via a postAction, as   
   in:   
      
   // following added:   
      
   if eventInfo.id() = DataArriveRecord then   
   	ViewedOn.value = today()   
   	ViewedOn.postAction(userAction + 123)   
   endIf   
      
      
   And then, in ViewedOn's Action() event, put in this code:   
      
   if eventInfo.id() = userAction + 123 then   
   	ViewedOn.value = today()   
   endif   
      
   HTH,   
   Jim Moseley   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca