DefinedSize Property
Field Object
PROPERTY: Field::ActualSize
long =
fieldobject.
ActualSize
fieldobject.
ActualSize
= long
The
ActualSize
property sets or returns a long value that is the actual length of a
Field
object value. If ADO cannot determine the length, this property will return
adUnknown
.
The companion property,
DefinedSize
, is used to set the maximum size of a value In other words,
DefinedSize
defines how long a value can be, while
ActualSize
telling how long it really is.
Code (VBScript):
Set rsData = Server.CreateObject("ADODB.Recordset")
rsData.Open "GuruList", strConnection, , , adCmdTable
rsData.MoveFirst
Do While Not rsData.EOF
Response.Write "Actual Size = " & rsData(strFieldName).
ActualSize
& VBCRLF
Response.Write "Defined Size = " & rsData(strFieldName).DefinedSize & VBCRLF
rsData.MoveNext
Loop
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information