Attributes
オブジェクト属性設定
文法
Propertyオブジェクト.Attributes
機能説明
Propertyオブジェクトの属性を設定
データ型
定数 | 値 | 説明 |
adPropNotSupported | 0 | プロバイダがプロパティをサポートしていない |
adPropRequired | 1 | データソース初期化時に指定要 |
adPropOptional | 2 | データソース初期化可能 |
adPropRead | 512 | プロパティ読み取り可能 |
adPropWrite | 1024 | プロパティ設定可能 |
使用例
<%
Dim objConn, objCmd, objProp, objRs, i
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open = "sample"
Set objCmd = Server.CreateObject("ADODB.Command")
objCmd.ActiveConnection = objConn
'クエリ作成
objCmd.CommandText = "select * from test "
Set objRs = objCmd.Execute
'表示
Set objProp = objRs.Properties.Item(0)
Response.Write "属性 : " & objProp.Attributes
Set objProp = Nothing
Set objRs = Nothing
Set objCmd = Nothing
objConn.Close
Set objConn
%>
Topへ