11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Maximum Length property<br />

Description<br />

Specifies the maximum length of the data value that can be stored in the item.<br />

Applies to all items except buttons, image items, and chart items<br />

Set <strong>Form</strong> <strong>Builder</strong><br />

Refer to Built-in<br />

GET_ITEM_PROPERTY<br />

Default<br />

• For a database item, the length of the corresponding column in the database table. Note: If the item’s<br />

data type is NUMBER, the maximum length will be set to the defined column length plus two, to<br />

allow for the possible use of a minus sign (for negative values) and a decimal separator.<br />

• For a control item, 30.<br />

• For a LONG item, 240 bytes.<br />

Required/Optional required<br />

Usage Notes<br />

• At runtime, <strong><strong>Form</strong>s</strong> will increase the value of the Maximum Length property if the item’s format<br />

mask requires a longer length. (The format mask may be either an explicit mask specified by the<br />

form’s designer for this item, or one of the implicit masks used by <strong><strong>Form</strong>s</strong> in its internal conversion<br />

operations.)<br />

• For CHAR values, the Maximum Length is 2000 characters.<br />

Note: Bear these considerations in mind if you are writing applications for a multi-byte character set:<br />

• <strong>Form</strong> <strong>Builder</strong> allows end users to enter the full number of single-byte characters, up to the<br />

Maximum Length specified.<br />

• If the end user enters a combination of single-byte and multi-byte characters that produce a string<br />

whose total length in bytes exceeds the item's Maximum Length, the string will be truncated to the<br />

nearest whole character and a warning will be displayed. To avoid this situation, consider raising<br />

the Maximum Length for the item. (If Maximum Length exceeds the display width of the item,<br />

<strong>Form</strong> <strong>Builder</strong> will automatically allow the end user to scroll the contents of the item.)<br />

102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!