Attributes (Property オブジェクト)

object.Attributes = value

引数

object
>Property オブジェクトの名前を指定します。
value
オブジェクトの属性
定数内容
adPropNotSupported0プロパティをサポートしていない
adPropRequied1データソース初期化に指定要
adPropOptional2データソース初期化可能
adPropRead512プロパティ読取可能
adPropWrite1024プロパティ設定可能

解説

Property オブジェクト名を指定します。

使用例

Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")

objConn.Open "sample"
objRS.Open "select * from Table", objConn

Set objProperty = objRS.Properties.Item(0)

Response.Write objProperty.Attributes



関連項目

NameProperty オブジェクトの名前を設定します。
TypeProperty オブジェクトのデータ型を設定します。
ValueProperty オブジェクトの値を設定します。


ASPリファレンス

データアクセスオブジェクト




ASP組み込みオブジェクト


ファイル操作オブジェクト


Copyright (C) ASP@Workshop All rights reserved.