Oracle® Objects for OLE Developer's Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E17727-03 |
|
|
PDF · Mobi · ePub |
When read, the Value
property provides a string representation of the value of the OraIntervalDS
object using the format [+/-]Day HH:MI:SSxFF. When set, the Value
property accepts a Variant
of type String
, a numeric value, or an OraIntervalDS
object.
string = OraIntervalDSObj.Value OraIntervalDSObj.Value = value
Arguments | Description |
---|---|
[in ] value |
A Variant of type String , a numeric value, or an OraIntervalDS object. |
Variant
If the value set is a Variant
of type String
, it must be in the following format: [+/-] Day HH:MI:SSxFF.
If the value set is a numeric value, the value provided should represent the total number of days that the OraIntervalDS
object represents.
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") 'get the OraIntervalDS.Value return a string for the Value ' property, idsStr is set to "01 12:00:00.000000" idsStr = oraIDS.Value 'can also return a string for the Value property as follows idsStr = oraIDS 'set the OraIntervalDS.Value using a string which represents 1 days and 12 hours oraIDS.Value = "1 12:0:0.0" 'set the OraIntervalDS.Value using a numeric value which represents '1 days and 12 hours oraIDS.Value = 1.5
See Also:
CreateOraIntervalDS Method