PROPERTY: Property::Attributes

long = propertyobject.Attributes
 
The Attributes property returns a long value that is the sum of one or more of the ParameterAttributesEnum constants that indicate the characteristics of a Property object.
 
Not all providers support this property.
 
PropertyAttributesEnum Constants
 
Constant Value Description
adPropNotSupported 0 Not supported by provider
adPropRequired 1 Property must be specified before data source is initialized
adPropOptional 2 Property does not have to be specified before data source is initialized
adPropRead 512 User can read property
adPropWrite 1024 User can set property

 
Code (VBScript):
If (objConnection.Properties(strName).Attributes = adPropNotSupported) Then
   Response.Write "WARNING: Not supported by provider"
End If

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information