1. Hung Doan
  2. PowerBuilder
  3. Wednesday, 11 April 2018 20:52 PM UTC

Does anyone had issue with longlong datatype in PB170?  This codes work with PB125 but now I find out it does not work with PB170 R2.

I defined a variable longlong al_unos_race, read in a longlong as you can see from the first screenshot below.  But when I passed it in a function, it just not able to read it and the value is assigned to zero?

Any idea?

Thanks!

Hung Doan Accepted Answer Pending Moderation
  1. Thursday, 19 April 2018 21:06 PM UTC
  2. PowerBuilder
  3. # 1

Thank you guys for taking the time answer my question.  I rewrite my codes and use different input file that contains long data value instead of longlong.

 

Comment
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 13 April 2018 23:10 PM UTC
  2. PowerBuilder
  3. # 2

Hung,

 

I just tested it with the same amount of arguments you are using on your code and the datatypes you are using. I sent them by value and reference as you did. I had no problem with it. I am using PowerBuilder 2017 R2 build 1769.

 

I hope this helps.

Comment
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 13 April 2018 22:46 PM UTC
  2. PowerBuilder
  3. # 3

Hi Hung,

 

Have you tried passing it by Reference?

 

 

Regards,

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 12 April 2018 05:04 AM UTC
  2. PowerBuilder
  3. # 4

I created a test case and had no problems with PB 2017 R1.

I have not installed R2 so I can't test it.

You should create a bug ticket.

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 12 April 2018 13:54 PM UTC
Hi René;



  FYI: I use the LongLong data type in my frameworks and that related functionality is all working 100% in PB2017R2 build 1769 for me.



Regards ... Chris

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 11 April 2018 21:40 PM UTC
  2. PowerBuilder
  3. # 5

Hi Hung;

   I wonder if this could be your issue .... byte alignment.

Regards ... Chris

Comment
  1. Roland Smith
  2. Wednesday, 11 April 2018 23:59 PM UTC
Byte alignment is a problem for external functions.

  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 12 April 2018 13:52 PM UTC
Hi Roland;



  I wasn't sure they were using external API calls. So I just wanted to mention that aspect.



Regards ... Chris



 

  1. Helpful
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.