AddDataRow Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}}
{{Template:API}}{{Template:APIBreadcrumb|.[[RawDataSet Class|RawDataSet]]}}




<onlyinclude>Adds a new [[RawData Class|RawData]] object, which represents a data point, to the SDW data collection</onlyinclude>
<onlyinclude>Adds a new [[RawData Class|RawData]] object, which represents a data point, to the SDW data collection.</onlyinclude>


== Syntax ==
== Syntax ==
  '''.RawDataSet.AddDataRow'''(''row '')
  '''.AddDataRow'''(''row '')


=== Parameters ===
=== Parameters ===
''row''
''row''
:The [[RawData Class|RawData]] object to be added.
:Required. The [[RawData Class|RawData]] object to be added.


== Example ==
== Example ==

Latest revision as of 20:54, 17 November 2015

APIWiki.png


Member of: SynthesisAPI.RawDataSet


Adds a new RawData object, which represents a data point, to the SDW data collection.

Syntax

.AddDataRow(row )

Parameters

row

Required. The RawData object to be added.

Example

VBA 

 'Create an SDW data collection.  
 Dim SDWData As New RawDataSet

 'Add code to create new data points. For example, the following code defines a couple of failure data. 
 Dim Data1 As New RawData
 Dim Data2 As New RawData
 Data1.StateFS = "F"
 Data1.StateTime = "100"
 Data2.StateFS = "F"
 Data2.StateTime = "120"

 'Add the two data points to the SDW data collection. 
 Call SDWData.AddDataRow(Data1)
 Call SDWData.AddDataRow(Data2)
VB.NET 

 'Create an SDW data collection.  
 Dim SDWData As New RawDataSet

 'Add code to create new data points. For example, the following code defines a couple of failure data. 
 Dim Data1 As New RawData
 Dim Data2 As New RawData
 Data1.StateFS = "F"
 Data1.StateTime = "100"
 Data2.StateFS = "F"
 Data2.StateTime = "120"

 'Add the two data points to the SDW data collection. 
 SDWData.AddDataRow(Data1)
 SDWData.AddDataRow(Data2)