Hello People,
I have a simple Form with
Dataset -> DataSource -> DBGrid
Dataset has a Floatfield.
DBGrid allows only Floatvalues('0..9' and ',') to be entered. (where/when is this established? Editmask of Dataset.Field is empty.)
I want the user to be able to insert fractions like '5/3' in the DBGrid and then calculate the Value by my own 'OnBeforePost' of Dataset or 'OnUpdateData' of DataSource(wich one or other is right?).
Ok, i can use a Stringfield instead of a FloatField, but then i have to convert and check everytime i use the Field in other Units/Functions...
Or are TField.GetText and TField.SetText the Events for me?
Or TField.OnValidate?
Tryed a lot - nothing works?!
thank's in advance
A Jupp