- Tomas Beran
- PowerBuilder
- Thursday, 1 December 2022 06:48 PM UTC
Hi
I'm investigating a new strange behavior of PB2022. I've never seen it in previous PB versions. It looks like
computed.expression='0.7' is sometimes interpreted as '0'. It looks like the part after the dot is cut off. Regular columns are not affected. Only computed fields.
It seems to be dependent on combination of user's locale, global locale and default non-unicode character set and such internal state of the computer.
It's happening randomly but when it starts happening it's there until the computer restart.
I'm working on it but currently I'm not able to create a minimal proof.
Code:
decimal ld_ret
datastore luo_store
luo_store = CREATE datastore
luo_store.dataobject="d_expr_bug"
luo_store.InsertRow(0)
luo_store.Modify("create compute(band=detail x='8' y='8' height='56' width='178' name=test expression='0.7')")
ld_ret = luo_store.GetItemDecimal( 1 , "test" )
ld_ret should be 0.7 now. But sometimes it's 0.
It may be a DLL mismatch. But I've checked pbdwe dependency and it looks OK.
Have you seen this or similar bug?
EDIT: Tested on 1892. I see there's a new version there so I will check it tomorrow.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.