Hello everyone,
could you please tell me how can I get CreateRecordSet().Read() for choosen records of recorder and other measurements? I don't want to Read() all records of the recorder but only choosen ones. Field "User" below is measurement of the accumulation register but script gives an error: Field "User" was not found.
| Code |
|---|
AccRecordSet = AccumulationRegisters.RegisterName.CreateRecordSet();
AccRecordSet.Filter.Recorder.Value = Recorder;
AccRecordSet.Filter.User.Value = User;
AccRecordSet.Read();
For Each Record In AccRecordSet Do
//things to do
EndDo; |
Thank you in advance for your help!
Kris