HI,
On webvisu, I would like to make a frame to display a table.
On variable input /output I have an array of array of BOOL. 48 lines of 30 column wich contain BOOL.
I want display only 1 column shoes with variable
GVL:
VARMyArray : ARRAY [1..48] OF ARRAY [1..30] OF BOOL;ColumnToEdit: INT;END_VAR
Frame:
VAR_IN_OUT MyColumn: array [1..48] OF BOOL;END_VAR
In the table on the frame, I call variable MyColumn.
How to call only column X ?
GVL.MyArray[ColumnToEdit]
This refernce create an error.
For array of array, what is the structure for call ? MyArray[column, line] ? MyArray[line, column] ?
Sorry for my bad english....
Thank you very much for your help.
Last edit: galexis 2021-05-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think there a few issues.
* Both your declarations in the GVL and Frame are missing 'Array'
* The array size of your frame declaration does not match the size declared in the GVL (30 vs 48)
* The initial value of ColumnToEdit should be at least 1 to not access invalid data
Best regards,
Marcel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HI,
On webvisu, I would like to make a frame to display a table.
On variable input /output I have an array of array of BOOL. 48 lines of 30 column wich contain BOOL.
I want display only 1 column shoes with variable
GVL:
Frame:
In the table on the frame, I call variable MyColumn.
How to call only column X ?
This refernce create an error.
For array of array, what is the structure for call ? MyArray[column, line] ? MyArray[line, column] ?
Sorry for my bad english....
Thank you very much for your help.
Last edit: galexis 2021-05-27
Hey,
I think there a few issues.
* Both your declarations in the GVL and Frame are missing 'Array'
* The array size of your frame declaration does not match the size declared in the GVL (30 vs 48)
* The initial value of ColumnToEdit should be at least 1 to not access invalid data
Best regards,
Marcel
I forget ARRAY when I write the post, because it's not a copy/paste from the project. In my project it's ok.
I want introduce in frame only 1 column, because I don't want to configure all column of array of array.
This works for me. If you have any other issues, please attach your project.
Last edit: m.prestel 2021-05-27
Ok it work.
I have inverse [1..30] et [1..48] in my project.
Thank you very much !