Data.DB.TIntegerField.MaxValue

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TIntegerField

Delphi

property MaxValue: Integer read FMaxValue write SetMaxValue default 0;

C++

__property int MaxValue = {read=FMaxValue, write=SetMaxValue, default=0};

Description

Limits the maximum value in the integer field.

Use MaxValue to get or set the maximum value that can be entered into the field. If a value greater than MaxValue is entered, an EDatabaseError exception is raised.

If the value of MaxValue is 0, the integer field can have a value up to the maximum value that can be represented by the native database type. For 32-bit integer fields, this value is 2147483647.

See Also