https://bugs.freedesktop.org/show_bug.cgi?id=63291

Lionel Elie Mamane <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Lionel Elie Mamane <[email protected]> ---
Yes, this is a difference between 3.x and 4.x.

No, it was not intended.

Yes, this has most probably the same source as bug 63398.

I'm thinking about how to change this to how it was before, I'm not yet sure
how to proceed.

In passing, in this particular case of the particular macro in the attachment,
my understanding is that its intent is to automatically set the tax rate at 19%
on *new* records. Without prejudice to the fact that the macro that worked
before should still work:

1) The "Default value" of the formatted field control is there exactly
   to give this feature, no macro needed.

2) To do it with a macro, it seems more "natural" to me to binding the
following
   macro to the "After resetting" event of the fmtTax formatted field
   (rather than at an event of the form).

   SUB TaxLocal(Event as Object)
    DIM oFeld AS OBJECT
    oFeld=Event.source
    IF Len(oFeld.GetCurrentValue())=0 THEN
        oFeld.BoundField.updateDouble(19)
    END IF
   END SUB

3) Even to do it at the form level, the "After reset' event is a better fit.

Yes, there are other macros that "legitimately" want to access the controls on
the form's "when loading" event.

*** This bug has been marked as a duplicate of bug 63398 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to