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 9,239 of 9,834   
   Jeff Shoaf to Craig   
   Re: changevalue and newvalue   
   07 Jun 08 10:48:47   
   
   From: jeffshoaf@alltel.net   
      
   ChangeValue() fires before the new value is applied to the field. If you   
   put DoDefault in the ChangeValue() event before you try to use the new   
   value, it will probably fix your issue.   
      
   Craig wrote:   
   > Newvalue is triggered when a new value is entered into a field but is also   
   > called on opening.   
   > I have a rather large database which has similar fields (we will call them   
   > ASA1 and ASA2) in separate, but linked tables. The fields are not identical   
   > for good reasons which I will not discuss here.   
   > However, when one of those fields changes, I want to take the value of the   
   > field, perform an operation on the value and then put the new value in the   
   > other field.   
   > The code for that part is easy, but it runs upon opening as well as a   
   > newvalue.   
   > Changevalue doesn't seem to work all the time. It will work if move off the   
   > field by hitting the tab or enter keys or use the mouse to touch another   
   > field. This form is a notebook and if I click on the a new tab to look at   
   > the other field, the other field has not changed.   
   >   
   > Since CanDeaprt fires before changevalue, I tried putting self.postrecord()   
   > in that but, it didn't seem to help. I am sure the Real Programmers out   
   > there have dealt with this many times before and there is a relatively easy   
   > answer.   
   >   
   > As always,   
   > Thanks for your help ahead of time.   
   >   
   > Craig Futterman   
   >   
   >   
      
   --- 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