Applies To:
  • CitectSCADA 3.xx, 4.xx, 5.xx

Summary:
Question: I use RepGetControl to get information on a weekly report, which starts on Sunday. The Manual and Online Help both say that the number returned should be 1 to 7 (1=Sunday), yet RepGetControl returns 0. Then if I use RepSetControl 0 is invalid and I get an out of range error, and if I set the value to 1, this is monday, what can I do? 

Solution:
The good news is that the Manual and Online Help are, technically speaking, wrong. The Day should be 0 to 6 (0=Sunday). So RepGetControl is returning the correct value. RepSetControl also needs weekdays from 0 to 6, but gives an out of range error.

This has been fixed for Service Pack F for 3.40 and 4.20, and will be included in version 5.01.

 

Keywords:
 

Attachments