- Kari Paukku
- PowerBuilder
- Wednesday, 24 May 2023 07:27 AM UTC
Hi,
I did run to the following: I have a data window with column with data type number.
In the ItemChanged event I have the following code
Amount = Double(data)
The data is type is string per PowerBuilder in the ItemChanged event.
As expected, when the data has value -100 the Double(data) returns -100
But if the value is +100 (the user has entered the plus sign) the Double(data) returns 0.10
I noticed also that doing Real(data) will return 100, so that will work.
I'm curious to learn if there is e.g. the plus sign has a special meaning in this context.
Thanks,
Kari
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.