Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Find in DataTable

Hi everyone,

I have a simple question because i dont know to do it but its seems to be simple.

I want to make the MU when it enter in the Drain register the date in a DataTable, in this DataTable has the name in the MU in the correct sequence, so i want to make the MU finds it name and assing in the next column but in the same line

like the name is in DataTable[1,1] and i want it to assing in the Datatable [1,2].

1 REPLY 1

Re: Find in DataTable

Legend
Legend

Hi @Gfvprogramming 

 

you can assign method to entry control of drain..

 

for var i := 1 to datatype.ydim

if datatype[columnname or columnumber,i] = @.name

  datatype[columnname,i] := sysdate or eventcontroller.simtime--whatever

end

next

 

note that: in datatype table you assign columnindex then you can give columnname otherwise yu can write simplay number of that colum(like 1,2,3....)