1 Jul 2005 01:10
Re: Sequence of actions in a button
The automatic action is always the last thing 4D will execute. Yves Sabourin Le Jeudi 30 juin 2005, à 03:56 , Nicolas JORE a écrit : >> I cannot find the answer to the following question in the >> documentation: If >> a button is not only assigned a specific action, such as Accept, for >> example, but also has an object method that specifies code to be >> executed >> when form event = On clicked, which happens first, the Accept and its >> consequences or the code in the object method? Can I assume that >> the object >> method code is executed before the Accept? > > I cannot give a hint on that subject but, to be on the safe side, every > time > I come across that problem I use a button with no action and put the > ACCEPT > command at the end of my code. > > That way I ensure that I control the saving/rejection of the record if > something is wrong in my code. > > Regards, > > Nicolas JORE > >(Continue reading)
RSS Feed