Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AddGraph - method of object tvTrend

Description:
The method serves for creating a new object of the 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.
Syntax:
AddGraph(vGraph As Variant, nStyle As Long, sValidityFce As String) As Object
Calling:
Set oGraph = oTrend.AddGraph(vGraph, nStyle, sValidityFce)
Parameters:
vGraph(Variant) Method of creating the new tvGraph object
1 - The graph is created by copying the basic graph
nStyle(Long) 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 defined 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.
Note:
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 Add configurator.
Example:
See examples in the description of the tvTrend object.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice