AddGraph - method of object tvTrend

Creates new object of tvGraph type (tools for drawing trends) and it adds it to an array of tvGraph objects (the array is accessible by the Graphs property). The method sets the validity function of this tvGraph object by the sValidityFce parameter.
AddGraph(vGraph As Variant, nStyle As Long, sValidityFce As String) As Object
Set oGraph = oTrend.AddGraph(vGraph, nStyle, sValidityFce)
vGraph(Variant) Method of creating the new tvGraph object
1 - The graph is created by copying the basic graph
nStyle(Long) is not used. Set always to 0
sValidityFce(String) Parameter sets the validity function of the object. It is possible to enter pre-defined strings, see tvGraph.SetValidityFce. If empty string "" is set, then the tvGraph object is created with the validity function "AlwaysFalse".
Return Values:
Returns the reference to the created tvGraph object or if the creation of the object failed, it returns value Nothing. Nothing value can be tested by VBScript Is operator.
The method creates a new object of the tvGraph type with the default ID, see tvGraph.ID. The new object of the tvGraph type with the preset ID can be also created by the Style > Add configurator.
See examples in the description of tvTrend object.
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice