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

前
 
次
 

Value(OraTimeStamp)プロパティ

説明

読取りでは、Valueプロパティは、OraTimeStampオブジェクトの値を表す文字列を取得します。FormatプロパティがNULLでない場合、出力文字列の書式はFormatプロパティで指定された書式になり、それ以外の場合、出力文字列の書式はセッションのTIMESTAMP書式(NLS_TIMESTAMP_FORMAT)になります。設定では、Valueプロパティは、Variant型のStringDateまたはOraTimeStampを使用できます。

使用方法

string = OraTimeStampObj.ValueOraTimeStampObj.Value= value

引数

引数 説明
[in] value Variant型の文字列、日付またはOraTimeStamp

データ型

String

備考

値がString型で、FormatプロパティがNULLでない場合、文字列の書式はFormatプロパティと一致する必要があります。FormatプロパティがNULLの場合、文字列の書式はセッションのTIMESTAMP書式と一致する必要があります。

... 
 
Set OraTimeStamp = OraSession.CreateOraTimeStamp("1999-APR-29 " & _ 
         "12:10:23.444 AM", "YYYY-MON-DD HH:MI:SS.FF AM") 
 
'returns a string for the Value property 
tsStr = OraTimeStamp.Value 
 
'set OraTimeStamp.Value using a string 
OraTimeStamp.Value = "1999-APR-29 12:10:23.444 AM"