This document is archived and information here might be outdated. Recommended version. |
Validate a field, performing type conversion if necessary.
[Visual Basic .NET] Public Function ValidateField ( _ ByVal inField As IField _ ) As IField
[C#] public IField ValidateField ( IField inField );
[C++]
HRESULT ValidateField(
IField* inField
);
[C++]
Parameters inField [in]
inField is a parameter of type IField*
The ValidateField method takes a Field definition as input, and based on its field type, scale and precision, returns a field definition that represents more closely how that field is actually stored in the database.
For example, a field whose type is esriFieldTypeSingle and its precision and scale are 0, then it will actually be stored in the database as a double.