Send feedback on this topic.
Teradata.Client.Provider
Succeeds(TdPeriodDate) Method



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Succeeds Method : Succeeds(TdPeriodDate) Method
The TdPeriodDate operand that this instance is compared against.
Indicates whether this instance succeeds the value.
Syntax
'Declaration
 
Public Overloads Function Succeeds( _
   ByVal value As TdPeriodDate _
) As Boolean
'Usage
 
Dim instance As TdPeriodDate
Dim value As TdPeriodDate
Dim value As Boolean
 
value = instance.Succeeds(value)
public bool Succeeds( 
   TdPeriodDate value
)
public:
bool Succeeds( 
   TdPeriodDate value
) 

Parameters

value
The TdPeriodDate operand that this instance is compared against.

Return Value

A true is returned when the this instance succeeds the value, otherwise a false is returned.
Remarks

A false will be returned if the value is TdPeriodDate.Null.

This instance will succeed the value if the beginning bound of the this instance is greater than or equal to the ending bound of the value.

In the following examples, consider this instance the Left operand and right operand as the value. The Left and Right periods are defined as (bL, eL) and (bR, eR), respectively.

Example Comments
            |-----------|--------|
            bL        eL bR      eR
            

Succeeds = false

The left operand appears before the right operand.

            |------|------|-------|
            bL     eL     bR      eR
            

Succeeds = false

The left operand appears before the right operand.

            |------|-------|-------|
            bL     bR      eL      eR
            

Succeeds = false

There is an intersection between the operands; therfore, the left does not succeeds the right.

            |-------|--------|
            bR    eR bL      eL
            
Succeeds = true
            |-------|---|-----|
            bR      eR  bL    eL
            
Succeeds = true
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List