Microsoft SDK for Java

getDefinedSize

The getDefinedSize and setDefinedSize methods of the Field class retrieve or set the data capacity of a Field object, respectively.

The getDefinedSize and getActualSize methods are different. For example, consider a Field object of data type char and a getDefinedSize property value of 50, containing a single character. The getActualSize property value it returns is the length in bytes of the single character.

Syntax

public int getDefinedSize();
public void setDefinedSize(int pl);

Parameters

p1 An integer that sets the data capacity of the field.

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