Mandu Posted August 2, 2006 Posted August 2, 2006 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
comment Posted August 3, 2006 Posted August 3, 2006 You need to use Extend ( g_SortColumn ). BTW, -1 * k = -k
Recommended Posts
This topic is 6689 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 accountSign in
Already have an account? Sign in here.
Sign In Now