CALL TABLE FROM *.prb
Posted: Fri Jan 03, 2020 12:26 am
Hello,
I want to call a table of data from de *.prb and write the rows as columns so I wrote this code:
*if(strcmp(GenData(Mixture_model),"One_NON-Cohesive_layer")==0)
*set var INS(int)=GenData(Sediment_classes,int)
*set var PASO=5
*for(i=1;i<=INS(int);i=i+PASO)
*GenData(Sediment_classes,*Operation(i+1),real)
*GenData(Sediment_classes,*Operation(i+2),real)
*GenData(Sediment_classes,*Operation(i+3),real)
*GenData(Sediment_classes,*Operation(i+4),real)
*end for
end table
It writes each row as a column but the problem is that this code writes each row data below the previous row. I want to write them side by side. I don't know if anybody could tell me what to modify.
Greetings and thank you very much for the help.
I want to call a table of data from de *.prb and write the rows as columns so I wrote this code:
*if(strcmp(GenData(Mixture_model),"One_NON-Cohesive_layer")==0)
*set var INS(int)=GenData(Sediment_classes,int)
*set var PASO=5
*for(i=1;i<=INS(int);i=i+PASO)
*GenData(Sediment_classes,*Operation(i+1),real)
*GenData(Sediment_classes,*Operation(i+2),real)
*GenData(Sediment_classes,*Operation(i+3),real)
*GenData(Sediment_classes,*Operation(i+4),real)
*end for
end table
It writes each row as a column but the problem is that this code writes each row data below the previous row. I want to write them side by side. I don't know if anybody could tell me what to modify.
Greetings and thank you very much for the help.