Skip Headers

Oracle® Objects for OLE Developer's Guide
Release 9.2.0.4

Part Number B10952-01
Go To Table Of Contents
Contents

Add (OraIntervalYM) Method

Applies To

OraIntervalYM

Description

Adds an argument to the OraIntervalYM object.

Arguments

[in] operand
A Variant of type String, a numeric value, or an OraIntervalYM to be added.
Usage

OraIntervalYMObj.Add operand

Remarks

The result of the operation is stored in the OraIntervalYM overwriting any previous value. There is no return value.

If operand is a Variant of type String, it must be in the following format: [+/-]YEARS-MONTHS.

If operand is a numeric value, the value provided should represent the total number of years

that the constructed OraIntervalYM represents.

Example

Dim oraIYM as OraIntervalYM

'Create an OraIntervalYM using a string which represents

'1 year and 6 months

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

'Add an interval using a string, which represents 2 years

'and 6 months, to oraIYM.

'The resulting oraIYM is an interval which represents 4 years

oraIYM.Add "2-6"

Also see
OraSession.CreateOraIntervalYM for more information.


 
Oracle
Copyright © 1994, 2003 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents