Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

TotalYears

Applies To

OraIntervalYM

Description

Gets and sets the total number of years that this OraIntervalYM object represents.

Arguments

[in] totalYears
A Variant type of any numeric value specifying the OraIntervalYM as the total number of years.

Usage

totalYears = OraIntervalYMObj.TotalYears

OraIntervalYMObj.TotalYears= totalYears

Datatype

Double Example

Dim oraIYM as OraIntervalYM

'Create an OraIntervalYM using a string which represents 1 year

'and 6 months

Set oraIYM = oo4oSession.CreateOraIntervalYM("1-6")

'totalYears is set to 1.5 which represents an interval of 1.5 years

totalYears = oraIYM.TotalYears