1. Miguel Alzate
  2. PowerServer 2020 or older (Obsolete)
  3. Tuesday, 17 September 2019 22:41 PM UTC

Hi, everyone.

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

Thank you all.

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 17 September 2019 23:18 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

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.
Michael Kramer Accepted Answer Pending Moderation
  1. Wednesday, 18 September 2019 11:13 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

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
  1. Miguel Leeuwe
  2. Wednesday, 18 September 2019 12:14 PM UTC
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. 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.