Microsoft SDK for Java

getActualSize

This method of the Field class returns the actual length of a Field object's value.

For all fields, the value is read-only.

The getActualSize and getDefinedSize methods are different. A Field object of data type char and a maximum length of 50 characters returns a getDefinedSize value of 50, but the getActualSize value it returns is the length of the data stored in the field for the current record.

Syntax

public int getActualSize();

Return Value

Returns the actual length of a Field object's value.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.