1. Kari Paukku
  2. PowerBuilder
  3. 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

Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 6 June 2023 09:25 AM UTC
  2. PowerBuilder
  3. # 1

@Kari Paukku.

I just was informed that Appeon solved that issue. I tested both your example application and the one I submitted as a test case. Both seems to work ok.
You can see the whole communication at: https://www.appeon.com/standardsupport/track/view?id=10318.

Andreas.

Comment
  1. Kari Paukku
  2. Tuesday, 6 June 2023 10:03 AM UTC
Hi,

I tested the case with the two new dll's and those fixed th eissue.



Thanks,

Kari
  1. Helpful
There are no comments made yet.
Kari Paukku Accepted Answer Pending Moderation
  1. Friday, 26 May 2023 05:41 AM UTC
  2. PowerBuilder
  3. # 2

Hi,

here is a simple test application. What the .pbl contains is window and in it a data window object. The data window (d_test) is an external one with one column.

If one enters +100, the ItemChanged event will show first the result of Dound(data) and then result of real(data) in a messagebox.

With +100 the result is 0.1 when doing double(data), with real(data= the result is 100.

Hope this helps to spot where the issue is. My PB version is 2022R11900  and running the development environment as x64, but I get the same results also whenusing x86.

Kari

 

 

Attachments (1)
Comment
  1. Kai Zhao @Appeon
  2. Friday, 26 May 2023 06:58 AM UTC
We reproduced it on our end and will do further research to figure it out. We will keep you posted about the progress.
  1. Helpful
  1. Andreas Mykonios
  2. Friday, 26 May 2023 07:03 AM UTC
Hi Kai.

I just opened a support ticket (https://www.appeon.com/standardsupport/track/view?id=10318).

Thanks.

Andreas.
  1. Helpful 1
  1. Kai Zhao @Appeon
  2. Friday, 26 May 2023 07:06 AM UTC
Thanks!
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 18:24 PM UTC
  2. PowerBuilder
  3. # 3

Hi, Kari -

What Windows O/S international/localization is in use when this occurs?

Is the plus sign (+) in the column DWObject keyed from the numeric keypad or the standard plus sign key in the upper-right corner of the keyboard?

Best regards, John

Comment
  1. Kari Paukku
  2. Friday, 26 May 2023 05:34 AM UTC
What I tested it didn't make any difference - the same result.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 15:16 PM UTC
  2. PowerBuilder
  3. # 4

Hi Kari, As Miguel mentioned, this might be a bug.  But as you notice it works for Benjamin.  So we need your help to provide test case and open support ticket.  Thanks.  https://www.appeon.com/standardsupport/newbug

 

Comment
  1. Kari Paukku
  2. Friday, 26 May 2023 05:35 AM UTC
Hi,

I'm attaching a simple test to this thread.
  1. Helpful
There are no comments made yet.
Kari Paukku Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 10:47 AM UTC
  2. PowerBuilder
  3. # 5

forgot to mention the version: PB2022R1 and the database is Oracle19

Comment
There are no comments made yet.
Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 10:44 AM UTC
  2. PowerBuilder
  3. # 6

What version are you on? In PB2019 both real(data) and double(data) give me 100 for "+100" from a number column.

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 24 May 2023 10:20 AM UTC
  2. PowerBuilder
  3. # 7

hi,

I think it simply is a bug.

regards.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.