1. Miguel Alzate
  2. PowerServer Web
  3. Tuesday, 17 September 2019

Hi, everyone.

Does anyone know about a feasible workaround for the longlong data type not supported in Powerserver?

Thank you all.

Michael Kramer Accepted Answer Pending Moderation
0
Votes
Undo

Re: LongLong in "pure PowerScript".

When |LongLong| = 16+ digits it will loose precision when cast into double. Instead, cast to decimal if needed.

HTH /Michael

 
Comment
Even though this was not the question, but to be complete: FYI on LongPtr type variables:

4 bytes in the 32-bit platform (same as "Long") and 8 bytes in the 64-bitplatform.

  1. Miguel Leeuwe
  2. Wednesday, 18 September 2019
There are no comments made yet.
  1. Wednesday, 18 September 2019
  2. PowerServer Web
  3. # 1
Miguel Leeuwe Accepted Answer Pending Moderation
0
Votes
Undo

Hola Miguel,

I don't think there is any, except for the obvious replacement of the longlong variables everywhere with long or ULong variables.

I had to do this for our dw2xls.pbl (export to excel) and luckily it seemed to work. (LongPtr was another variable not supported).

If long / ulong variables aren't "big" enough, try "decimal ldec_mivariable {0}".

 

Sorry

Comment
There are no comments made yet.
  1. Tuesday, 17 September 2019
  2. PowerServer Web
  3. # 2
  • Page :
  • 1


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