Hi All,
I am trying to create a second Data Table from a created first Data Table in a same script, is it possible?
Example:
dt_= Open(path_pst);
//First Data Table
start = New Table("W",
New Column("S"),
New Column("Z"),
New Column("X"),
New Column("Y"),
New Column("E"),
New Column("W"),
New Column("S"),
Add Rows(545)
);
//Some Calculations
for(i=1,i<=545,i++,
W:B[i] = ((dt_ - dt_*60)/8;
W:S[i] = dt_[i];
W:X[i] = dt_[i]/10000000;
W:Y[i] = dt_[i]/10000000;
W:E[i] = dt_[i];
W:W[i] = dt_[i];
W:S[i] = dt_[i];
);
//Creating a second Data Table
start = New Table("WIWM",
New Column("Si"),
New Column("Ba"),
New Column("X1"),
New Column("Y1"),
New Column("En"),
New Column("Wa"),
New Column("M"),
Add Rows(109)
);
//Calculation for second Data Tabe based on the first Data Table created
for (i=1, i<=109,i++,
WIWM:Ba[i] = (W:B[i+109]+W:B[i+218]+W:B[i+327]+W:B[i+436])/4;
WIWM:Si[i] = W:S[i];
WIWM:X1[i] = W:X[i];
WIWM:Y1[i] = W:Y[i];
WIWM:En[i] = W:E[i];
WIWM:Wa[i] = W:W[i];
);
After First Data Table comes as expected, second Data Table comes with expected rows numbers but blanked( for condition not run).
If I will saparate Script so in a first part I will perform the first calculation and save it and after I will run a second part on saved Data Table I will get my calculation done for second Data Table.
Thanks.