Hi coders, hope you can help.
I fully understand that the contents of an integer Array must be have integer figures inside, no worry.
I intend to have 9 types of TFs and will only need to control on the User Input Variables, any changes on the 9 "int sTF=xx;" by the user will automatically to reflect in the whole EA's TFs, therefore the user will not need to manually change inside the body of the EA's codes.
I would like to write an array that with "representing integer values" inside such as :-
The way I wrote is as follows :-
Of course, my way of coding will definitely create 9 errors as per attached picture ...
I would like to check with coder is there any coding way to achieve such array mission of using "representing integer values" instead of integer values ? Thanks.
I fully understand that the contents of an integer Array must be have integer figures inside, no worry.
I intend to have 9 types of TFs and will only need to control on the User Input Variables, any changes on the 9 "int sTF=xx;" by the user will automatically to reflect in the whole EA's TFs, therefore the user will not need to manually change inside the body of the EA's codes.
I would like to write an array that with "representing integer values" inside such as :-
Inserted Code
int TF[9]={sTF1,sTF2,sTF3,sTF4,sTF5,sTF6,sTF7,sTF8,sTF9};
The way I wrote is as follows :-
Inserted Code
// User Input Variables int sTF1=1; int sTF2=5; int sTF3=15; int sTF4=60; int sTF5=240; int sTF6=1440; int sTF7=15; int sTF8=30; int sTF9=60; // Inside the body of a function block int TF[9]={sTF1,sTF2,sTF3,sTF4,sTF5,sTF6,sTF7,sTF8,sTF9};
Of course, my way of coding will definitely create 9 errors as per attached picture ...
I would like to check with coder is there any coding way to achieve such array mission of using "representing integer values" instead of integer values ? Thanks.