Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Problem validat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3743 of 3900
Post > Topic >>

Problem validating a number entered into a dbgrid attached to memory

by fig000 <neilnewton001@[EMAIL PROTECTED] > May 12, 2008 at 01:13 PM

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
 




 1 Posts in Topic:
Problem validating a number entered into a dbgrid attached to me
fig000 <neilnewton001@  2008-05-12 13:13:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 23:02:48 CDT 2008.