WAPlots.Clear: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 6: | Line 6: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Create a new | {{APIComment|'Create a new WAPlots object.}} | ||
Dim WeibullALTAPlot As New WAPlots | |||
{{APIComment|Declare a WeibullDataSet. See [[ | {{APIComment|'Declare a WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}} | ||
Dim WDS as New WeibullDataSet | |||
{{APIComment|Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]] | {{APIComment|'Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]].}} | ||
WDS.AddFailure(1, 1) | |||
WDS.AddFailure(2, 1) | |||
WDS.AddFailure(3, 1) | |||
{{APIComment|Add the WeibullDataSet to the WAPlots.}} | {{APIComment|'Add the WeibullDataSet to the WAPlots object.}} | ||
WeibullALTAPlot.AddDataset(WDS) | |||
{{APIComment|Clear the | {{APIComment|'Clear the dataset in the WAPlots object.}} | ||
WeibullALTAPlot.Clear |
Revision as of 22:46, 23 May 2014
Removes the added WeibullDataSet/ALTADataSet object. (Required before a new data set can be added.)
Syntax
- Clear()
Usage Example
'Create a new WAPlots object. Dim WeibullALTAPlot As New WAPlots 'Declare a WeibullDataSet. See WeibullDataSet. Dim WDS as New WeibullDataSet 'Add values to the raw data. See AddFailure. WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1) 'Add the WeibullDataSet to the WAPlots object. WeibullALTAPlot.AddDataset(WDS) 'Clear the dataset in the WAPlots object. WeibullALTAPlot.Clear