ALTAStressProfile.Clear: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
{{Template:API}}{{Template:DeprecatedAPI}}{{Template:APIBreadcrumb|.[[ALTAStressProfile_Class|ALTAStressProfile]]}}
{{Template:ALTAStressProfile.Clear.Cmt}}
 
 
<onlyinclude><includeonly>{{DeprecatedAPIpic}}</includeonly>Deletes all segments in the stress profile. </onlyinclude>


== Syntax ==
== Syntax ==
*Clear()
'''.Clear()'''
 
== Example ==
 
'''VBA'''
{{APIComment|'Declare a new ALTADataSet object.}}
  {{APIPrefix|Dim}} ALTADS {{APIPrefix|As New}} ALTADataSet
 
{{APIComment|'Declare a new ALTAStressProfile object.}}
  {{APIPrefix|Dim}} sp {{APIPrefix|As New}} ALTAStressProfile
 
  sp.RepeatCycle = True
  {{APIPrefix|Call}} sp.AddSegment(1, 250)
  {{APIPrefix|Call}} sp.AddSegment(2, 300)
  {{APIPrefix|Call}} sp.AddSegment(3, 400)
 
{{APIComment|'Clear all segments in the profile.}}
  {{APIPrefix|Call}} sp.Clear()


== Usage Example ==
'''VB.NET'''
<div style="margin-right: 150px;">
  {{APIComment|Declare a new ALTADataSet object. See [[ALTADataSet Constructors]].}}
  {{APIComment|'Declare a new ALTADataSet object.}}
  Dim ALTADS as New ALTADataSet
  {{APIPrefix|Dim}} ALTADS {{APIPrefix|As New}} ALTADataSet
    
    
  {{APIComment|Declare a new ALTAStressProfile object. See [[ALTAStressProfile Class|ALTAStressProfile]].}}
  {{APIComment|'Declare a new ALTAStressProfile object.}}
  Dim sp = New ALTAStressProfile("Profile1")
  {{APIPrefix|Dim}} sp {{APIPrefix|As New}} ALTAStressProfile
  sp.RepeatCycle = True
  sp.AddSegment(1, 250)
  sp.RepeatCycle = True
  sp.AddSegment(2, 300)
  sp.AddSegment(1, 250)
  sp.AddSegment(3, 400)
  sp.AddSegment(2, 300)
  sp.AddSegment(3, 400)
    
    
  {{APIComment|Clear all segments in the profile.}}
  {{APIComment|'Clear all segments in the profile.}}
  sp.Clear()
  sp.Clear()
</div>

Latest revision as of 22:05, 23 March 2017

APIWiki.png


This method has been deprecated and may be removed in future versions of the Synthesis API. Do not use it in new applications.


Member of: SynthesisAPI.ALTAStressProfile


Deletes all segments in the stress profile.

Syntax

.Clear()

Example

VBA

 'Declare a new ALTADataSet object. 
  Dim ALTADS As New ALTADataSet
 
 'Declare a new ALTAStressProfile object. 
  Dim sp As New ALTAStressProfile
 
  sp.RepeatCycle = True
  Call sp.AddSegment(1, 250)
  Call sp.AddSegment(2, 300)
  Call sp.AddSegment(3, 400)
 
 'Clear all segments in the profile. 
  Call sp.Clear()
VB.NET

 'Declare a new ALTADataSet object. 
  Dim ALTADS As New ALTADataSet
 
 'Declare a new ALTAStressProfile object. 
  Dim sp As New ALTAStressProfile

  sp.RepeatCycle = True
  sp.AddSegment(1, 250)
  sp.AddSegment(2, 300)
  sp.AddSegment(3, 400)
 
 'Clear all segments in the profile. 
  sp.Clear()