ALTADataSet.ClearDataSet: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:API}}{{Template:APIBreadcrumb|.[[ALTADataSet_Class|ALTADataSet]]}} | ||
{{Template:ALTADataSet | |||
<noinclude>Clears all data in the data set and removes the fitted model, if any. </noinclude> | |||
== Syntax == | == Syntax == | ||
'''.ClearDataSet()''' | |||
== Example == | |||
'''VBA''' | |||
{{APIComment|'Declare a new ALTADataSet object.}} | |||
{{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet | |||
{{APIComment|'Define a stress type.}} | |||
{{APIPrefix|Call}} ADS.AddStressDefinition({{APIString|"Stress1"}},,10) | |||
{{APIComment|'Add failure times for Stress1 = 190.}} | |||
{{APIPrefix|Dim}} Stress(0) {{APIPrefix|As}} Variant | |||
Stress(0) = 190 | |||
{{APIPrefix|Call}} ADS.AddFailure(100, 1, Stress) | |||
{{APIPrefix|Call}} ADS.AddFailure(120, 1, Stress) | |||
{{APIPrefix|Call}} ADS.AddFailure(130, 1, Stress) | |||
{{APIComment|'Clear the defined stress and failure times from the data set.}} | |||
{{APIPrefix|Call}} ADS.ClearDataSet() | |||
{{APIComment|'Declare a new ALTADataSet object | |||
'''VB.NET''' | |||
{{APIComment|'Declare a new ALTADataSet object.}} | |||
{{APIPrefix|Dim}} ADS {{APIPrefix|As New}} ALTADataSet | |||
{{APIComment|'Define a | {{APIComment|'Define a stress type.}} | ||
ADS.AddStressDefinition({{APIString|"Stress1"}},,10) | |||
{{APIComment|'Add failure times | {{APIComment|'Add failure times for Stress1 = 190.}} | ||
ADS.AddFailure(100, 1, 190) | |||
ADS.AddFailure(120, 1, 190) | |||
ADS.AddFailure(130, 1, 190) | |||
{{APIComment|'Clear the defined stress and failure times from the data set.}} | {{APIComment|'Clear the defined stress and failure times from the data set.}} | ||
ADS.ClearDataSet() |
Revision as of 17:40, 19 April 2016
Member of: SynthesisAPI.ALTADataSet
Clears all data in the data set and removes the fitted model, if any.
Syntax
.ClearDataSet()
Example
VBA 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define a stress type. Call ADS.AddStressDefinition("Stress1",,10) 'Add failure times for Stress1 = 190. Dim Stress(0) As Variant Stress(0) = 190 Call ADS.AddFailure(100, 1, Stress) Call ADS.AddFailure(120, 1, Stress) Call ADS.AddFailure(130, 1, Stress) 'Clear the defined stress and failure times from the data set. Call ADS.ClearDataSet()
VB.NET 'Declare a new ALTADataSet object. Dim ADS As New ALTADataSet 'Define a stress type. ADS.AddStressDefinition("Stress1",,10) 'Add failure times for Stress1 = 190. ADS.AddFailure(100, 1, 190) ADS.AddFailure(120, 1, 190) ADS.AddFailure(130, 1, 190) 'Clear the defined stress and failure times from the data set. ADS.ClearDataSet()