Oracle® Objects for OLE Developer's Guide 10g Release 1 (10.1) Part Number B10118-01 |
|
Applies To
Description
Adds an argument to the OraIntervalDS object.
Arguments
[in] operand |
A Variant of type String, a numeric value, or an OraIntervalDS to be added. |
OraIntervalDS.Add operand
Remarks
The result of the operation is stored in OraIntervalDS overwriting any previous value. There is no return value.
If operand is a Variant of type String, it must be in the following format: [+/-]Day HH:MI:SSxFF.
If operand is a numeric value, the value provided should represent the total number of days that the constructed OraIntervalDS represents.
Example
Dim oraIDS as OraIntervalDS
'Create an OraIntervalDS using a string which represents
'1 day and 12 hours
Set oraIDS = oo4oSession.CreateOraIntervalDS("1 12:0:0.0")
'Add an interval using a string, which represents 2 days
'and 12 hours, to oraIDS.
'The resulting oraIDS is an interval which represents 4 days
oraIDS.Add "2 12:0:0.0"
Also see OraSession.CreateOraIntervalDS for more information.