sathasivan
3rd June 2005, 03:58
Hi

BaaN 5c

Have anybody used Arrays syntax in Constraint text (tipcf2110m000)? If so, kindly share the same.

Example: -

if [fl02] = "4"
then
c: [fs01] = 50
endif

if [fl02] = "5"
then
c: [fs01] = 75
endif

if [fl02] = "6"
then
c: [fs01] = 100
endif

if [fl02] = "7"
then
c: [fs01] = 125
endif

if the above constraint coding is rebuilt using "array" then it will be easy to define in constraint text.

Thanks
Sathasivan K

ConradMollink
31st March 2006, 11:52
Hi,

I've used array's in pcf-constraint's.
But you can only used array's of type long or double.
The array can also be used as a global value (just add global)

long sample(15)

sample(4) = 50
sample(5) = 75
sample(6) = 100
sample(7) = 125

c: [fs01] = sample(val([fl02]))

Good luck

Eddy G
5th July 2006, 09:59
or, ...here maybe...:

c: [fs01] = (val([fl02]) - 2) * 25

:-)