Jump to content

Get (CalculationRepetitionNumber)


This topic is 5607 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Going nuts, need another pair of eyes.

I have an unstored calculation field u_Foo, defined as follows (this is in debug form, don't worry about intentions)

-- Has 5 repetitions.

-- Let ( [k = Get ( CalculationRepetitionNumber ) ] ; Case( k = g_SortColumn ; k ; -1 * k ) )

g_SortColumn is a global number from 1 to 5.

When g_SortColumn = 1,

u_Foo[1] = 1

u_Foo[2] = -2

u_Foo[3] = -3

u_Foo[4] = -4

u_Foo[5] = -5

as hoped.

But when g_SortColumn = 2,

u_Foo[1] = -1

u_Foo[2] = -2 <-- expected 2

u_Foo[3] = -3

u_Foo[4] = -4

u_Foo[5] = -5

Same for g_SortColumn = 3..5

It's like the test (k = g_SortColumn) succeeds when both are 1, but not when both are 2, 3, etc...

Can anyone spot the problem? Thanks....Chap

Link to comment
Share on other sites

This topic is 5607 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.