CimPairData.Pop (method)

Pops the X and Y data value vectors.
Syntax: object.Pop XData, YData
Parameters:
XData As VARIANT* -
YData As VARIANT* -
Description: CimPairData.Pop copies the X and Y data value vectors into the given variant arguments. It is similar to using CimData.Value property to get the vector. It differs in that it gets both X and Y vectors at the same time.

Example

The following CimView script excerpt extracts the X and Y data vectors and then places them in a string message:

Dim x as Variant
Dim y as Variant
cimOleObj.Series("Series 1").Data.Pop x, y
Dim item as Variant
Dim str as String
str = "X Values: "
For each item in x
    str = str & item & " "
Next
str = "Y Values: "
For each item in y
    str = str & item & " "
Next