ALTAStressProfile.GetSegments: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|ALTAStressProfile Class|ALTAStressProfile}}
{{Template:API}}{{Template:APIBreadcrumb|.[[ALTAStressProfile_Class|ALTAStressProfile]]}}
{{Template:ALTAStressProfile.GetSegments.Cmt}}
 
 
<onlyinclude>Returns an array of [[ALTASegment Class|ALTASegment]] objects that represent each segment in the stress profile. </onlyinclude>


== Syntax ==
== Syntax ==
*GetSegments(){{APIPrefix|As}} [[ALTASegment Class|ALTASegment]]
'''.GetSegments()'''
 


== Usage Example ==
== Example ==
'''VBA'''
{{APIComment|'Declare a new ALTAStressProfile object.}}
  {{APIPrefix|Dim}} SP {{APIPrefix|As New}} ALTAStressProfile
 
{{APIComment|'Add segments.}}
  {{APIPrefix|Call}} SP.AddSegment(1, 250)
  {{APIPrefix|Call}} SP.AddSegment(2, 300)
  {{APIPrefix|Call}} SP.AddSegment(3, 400)
 
{{APIComment|'Get segments.}}
  {{APIPrefix|Dim}} StressSegments() {{APIPrefix|As}} ALTASegment
  StressSegments = SP.GetSegments


  {{APIComment|'Declare a new ALTAStressProfile. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
'''VB.NET'''
   Dim SP As New ALTAStressProfile("Profile1")
  {{APIComment|'Declare a new ALTAStressProfile object.}}
   {{APIPrefix|Dim}} SP {{APIPrefix|As New}} ALTAStressProfile
    
    
  {{APIComment|'Add segments.}}
  {{APIComment|'Add segments.}}
Line 16: Line 34:
    
    
  {{APIComment|'Get segments.}}
  {{APIComment|'Get segments.}}
   Dim StressSegments() As [[ALTASegment Class|ALTASegment]]
   {{APIPrefix|Dim}} StressSegments() {{APIPrefix|As}} ALTASegment
   StressSegments = SP.GetSegments
   StressSegments = SP.GetSegments

Revision as of 21:09, 19 April 2016

APIWiki.png


Member of: SynthesisAPI.ALTAStressProfile


Returns an array of ALTASegment objects that represent each segment in the stress profile.

Syntax

.GetSegments()


Example

VBA

 'Declare a new ALTAStressProfile object. 
 Dim SP As New ALTAStressProfile
 
 'Add segments. 
 Call SP.AddSegment(1, 250)
 Call SP.AddSegment(2, 300)
 Call SP.AddSegment(3, 400)
 
 'Get segments. 
 Dim StressSegments() As ALTASegment
 StressSegments = SP.GetSegments
VB.NET

 'Declare a new ALTAStressProfile object. 
 Dim SP As New ALTAStressProfile
 
 'Add segments. 
 SP.AddSegment(1, 250)
 SP.AddSegment(2, 300)
 SP.AddSegment(3, 400)
 
 'Get segments. 
 Dim StressSegments() As ALTASegment
 StressSegments = SP.GetSegments