Applies To:
  • CitectSCADA 5.xx, 6.xx
  • CitectHMI 5.xx, 6.xx

Summary:
I am trying to create a two-dimensional array with direct reference on the graphics page and it comes up with "Trailing characters in Cicode" error after I compile.
 

Solution:
You cannot use an array in this fashion. Arrays are only to be used in Cicode. However, there is a very easy workaround. All you have to do is write a simple function to do the array lookup and return the value, making use of the function in the graphics object.

Something like this:

INT
FUNCTION

ArrayLookup(
INT Xcoord, INT ycoord)
    RETURN
(ArrayA[Xcoord] [Ycoord]);
END

Then in the graphics object, you can make use of the array value via the function. Instead of using ArrayA[1] [1], you would use ArrayLookup(1,1)

 

Keywords:
Dimensional Arrays  

Attachments