We help IT Professionals succeed at work.

Compilation error after expanding a Numeric field.

SKC
SKC asked
on
After axpanding a field in my table (dBase IV) - I get this message when running my program.

TableXX: Type mismatch for field KODEID, expecting: Float actual: SmallInt.

Where do I tell Delphi about this change ?? I do use relation, using MasterSource etc. - but all tables have been expanded from Num 4,0 to 5,0

What do I do ??

Regards SKC
Comment
Watch Question

Commented:
I guess you're using persistent fields. You should be able to reopen your project, open Fields Editor for the dataset, clear it and (optional) re-add again.
When persistent fields are used, Delphi relies on the defined persistent fields as streamed in from your .dfm resource (actual table definition is ignored).
If you don't use persistent fields, Delphi will create appropriate field components dynamically based on the actual table definition, every time you open the table.

HTH
TOndrej

Commented:
Just a note; what you describe is not a compiler error, is it? Looks like a runtime error.
SKC

Author

Commented:
Thamks a mill - knew it was a stupid error!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.