Problem validating a number entered into a dbgrid attached to memory table
- From: fig000 <neilnewton001@xxxxxxxxx>
- Date: Mon, 12 May 2008 13:13:36 -0700 (PDT)
Hi,
Pretty new to Delphi. I have a grid pointing to a memory table. One
field in the grid is enterable. I found by accident that when I
entered "--4" I got a message from the DatabaseError procedure in
db.pas that comes with delphi (version 5 by the way). The message tell
me "--4 is not a valid floating point value for field "FieldName"".
The field name is a field defined in the memory table which seems to
be defined as fkData so I'm not sure how it knows that it's a float
(the data tha fills it when the table is appened to is floating
point).
The problem is that this message comes up followed by one very much
like it. I had put in some code to validate this value in the validate
event of the field in question and the beforepost event of the memory
table but neither one get's fired at all. All I see are those two
messages. It seems like the db.pas code is preempting the table and
field events.
Users are allowed to enter negative numbers in this grid so I'd like
to be able to validate this and show my own message using
showmessagepos. Any advice?
Thanks,
Fig000
.
- Prev by Date: Altova v2008r2
- Next by Date: [d6] snapshot button webcam
- Previous by thread: Altova v2008r2
- Next by thread: [d6] snapshot button webcam
- Index(es):