Reputation: 11
I have noticed a change in behaviour between PB12 and PB12.5 (both patched). I have quite few datawindows with global functions on them. In previous versions of PB these functions only got fired on when the datawindow got focus (getfocus event) - which suited the application perfectly.
The functions now seem to get fired all the time (it seems to be on the mousemove event - but I can't be sure).
Has anyone else noticed the same - and is there any solution? Thanks
Upvotes: 1
Views: 2057
Reputation: 6215
Actually, I've noticed quite the opposite: that they've always fired more often than just GetFocus. Given that expressions can include values like FirstOnPage and LastOnPage, they'd have to.
Advice from Powersoft/Sybase/SAP has always been to use global functions in expressions cautiously, as they fire very often. (I explicitly remember hearing that advice at one of the first PowerBuilder conferences in San Diego/Coronado, which would put the advice near the PB3 release date.) If PB12 only fired on GetFocus, that was probably a very version-specific bug, as it would have broken many apps, so it would have been fixed very quickly.
Good luck,
Terry.
Upvotes: 1