|
AnyDAC
|
Specifies column name mask.
Use NameMask property to specify a mask to match the column names. The mask uses LIKE operator format, where:
If a column name matches a mask, then exactly this column matches to this map rule. And the column will get TargetDataType type. Other properties may be used to strict the rule.
property NameMask: String;
// maps all columns ending with ID to dtInt32 with ADQuery1.FormatOptions.MapRules.Add do begin NameMask := '%ID'; TargetDataType := dtInt32; end;
// maps all ID columns of dtFmtBCD data type to dtInt32 with ADQuery1.FormatOptions.MapRules.Add do begin NameMask := 'ID'; SourceDataType := dtFmtBCD; TargetDataType := dtInt32; end;
|
What do you think about this topic? Send feedback!
|