Data.DB.TField.Validate

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TField

Delphi

procedure Validate(Buffer: TValueBuffer); overload;
procedure Validate(Buffer: Pointer); overload; deprecated 'Use overloaded method instead';

C++

void __fastcall Validate(TValueBuffer Buffer)/* overload */;
void __fastcall Validate _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (void * Buffer)/* overload */;

Description

Generates an OnValidate event.

Call Validate to validate the unformatted data pointed to by the Buffer parameter. Validate is called by the dataset when writing new values to the current record.

The value of Buffer does not affect the value of the field outside the OnValidate event handler.

See Also