Posted 15 Jan 2020 Hello all, is there a way to declare an array of constants with different values for each of array element? Share this post Link to post Share on other sites
Posted 17 Jan 2020 No, i think. There is a workaround: Define an array as VAR ==> CONST_LABEL1 (Uppercase indicates in programming a constant) Define each constant as single entity at position 2,3,... in the dialog of your picture ==> CONST_LABEL_1, CONST_LABEL_2 At startup move these constants to the var. Rule: Do never overwrite in your code anything which has all UPPERCASE. Share this post Link to post Share on other sites
Posted 18 Jan 2020 If concern is that someone may inadvertently modify value, dont use array. Create function that has index as parameter and returns value. Index could be an onteger, enumeration, string or whatever you like. Share this post Link to post Share on other sites