ofer.yishai Posted September 22, 2015 Report Share Posted September 22, 2015 Hi, I create an indexed data table, based on a struct previously defined. but now I want to change the table columns order or to insert a new column to the left. Every member added to the struct is placed at the end of the list and to the right column of the table. I found it possible to change columns order by dragging headers on the data table editor, but when exporting the data table to excel it is keeping the original column order as the original struct members order when created!! Also this order is shown at Uniapps data table viewer. This is not the necessarily the correct order required! Yes, I can delete and recreate the struct and the data table and rebuild them in the right order, bur is thee a beater way? like changing the struct members order? In addition I found it is possible to sort struct members by Name or by Type but not back to the natural order they created, and shown in the opened list in ladder elements . I guess a "Member #" column is missing for viewing, sorting and reordering, that can fix it all. Unilogic Version 1.14 Rev.62 Thanks in advance, Ofer 1 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted September 22, 2015 MVP 2023 Report Share Posted September 22, 2015 Unfortunately, this same type of problem also exists in VisiLogic. Link to comment Share on other sites More sharing options...
HigHTech Posted September 23, 2015 Report Share Posted September 23, 2015 Unfortunately, this same type of problem also exists in VisiLogic. Hi Flex in Visilogic you can insert before or after so you can control exactly where you want the new column. It would be great if we have an option (like buttons) to change the order of the colums in Visilogic and in Unilogic. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted September 23, 2015 MVP 2023 Report Share Posted September 23, 2015 Yes, but if you copy a DT function block from another project with an identical (appearing) DT, but the columns were inserted differently, then the FB will not refer to the correct columns. The problem is that the Data Tables use addressing that is not visible to the programmer. VisiLogic seems to indicate that the name of the column is the address pointer, but it is not. Link to comment Share on other sites More sharing options...
Robin P Posted September 28, 2015 Report Share Posted September 28, 2015 On copying a function block, if the source code was effectively what was copied then could not its recompilation in the modified DT environment regenerate the internal addressing? Regards Robin Proctor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now