ヘッダーをスキップ
Oracle® Objects for OLE開発者ガイド
11gリリース2 (11.2) for Microsoft Windows
B58887-04
  目次へ移動
目次
索引へ移動
索引

前
 
次
 

Value(OraIntervalYM)プロパティ

説明

読取りでは、YEARS-MONTHSの書式を使用してOraIntervalYMの値を表す文字列を取得します。

設定では、Variant型の文字列、数値またはOraIntervalYMオブジェクトを使用できます。

使用方法

string = OraIntervalYMObj.ValueOraIntervalYMObj.Value= value

引数

引数 説明
[in] value Variant型の文字列、数値またはOraIntervalYMオブジェクト。

データ型

String

備考

値セットがVariant型の文字列の場合は、[+/-]YEARS-MONTHSの書式で記述する必要があります。

値セットが数値の場合、提供される値は、OraIntervalYMオブジェクトが表す合計年数を表す必要があります。

Dim oraIYM as OraIntervalYM 
 
'Create an OraIntervalYM using a string which represents 1 year and 6 months 
Set oraIYM = oo4oSession.CreateOraIntervalYM("1-6") 
 
'get the OraIntervalYM.Value return a string for the Value property,
' iymStr is set to "01-06" 
iymStr = oraIYM.Value 
 
'can also return a string for the Value property as follows 
iymStr = oraIYM 

'set the OraIntervalDS.Value using a string which represents 1 year and 6 months
oraIYM.Value = "1-6" 
 
'set the OraIntervalYM.Value using a numeric value which represents 
'1 years and 6 months 
oraIYM.Value = 1.5