I'm using an array like the one below
In the database is a field called "code" and this can be the value AQTCO1, AQTCO2, AQTSV1
Now I want to get the value depending on the field-value.
Something like
to get the third value from the linked array
What is the code I have to use ?
Now I'm getting an error "a number is required here
Code:
NumberVar tar := 0;
NumberVar array AQTCO1 := [180,188,189,222,236];
NumberVar array AQTCO2 := [133,153,139,151,166];
NumberVar array AQTSV1 := [254,268,291,316,344];
In the database is a field called "code" and this can be the value AQTCO1, AQTCO2, AQTSV1
Now I want to get the value depending on the field-value.
Something like
Code:
tar:={TABLE1.CODE}[3]
What is the code I have to use ?
Now I'm getting an error "a number is required here