Board index » delphi » Paradox Validity checks?

Paradox Validity checks?

Helo there,

I'm working with a Paradox7 table, in some of the table's fields Im
using a picture (validity checks) like this:  {POSITIVE,NEGATIVE}.
this picture works ok at design time (when I use the picture
Assist and type  P or N), but it doesn't  work at Runtime so I have
to type the whole word...   why?
Also, I have set Default Value to NEGATIVE and this works fine at
Runtime.

Is there any EditMask that
works like {POSITIVE,NEGATIVE} picture in Paradox7 validity
checks?          Something like:
Table1.FieldByName('Field1').EditMask := {POSITIVE,NEGATIVE};

and ? how do I set validity checks at runtime?, I want to set
today's  Date be the Default Value.
I know how to do this on TDBEdit controls but ?how can I do the
same on a DBGrid (when a new record is being inserted) ?

TIA
mja...@hotmail.com

 

Re:Paradox Validity checks?


Quote
>Is there any EditMask that
>works like {POSITIVE,NEGATIVE} picture in Paradox7 validity
>checks?          Something like:
>Table1.FieldByName('Field1').EditMask := {POSITIVE,NEGATIVE};

There are third party components that support Paradox Style Pictures
I use the ones from InfoPower Utilities

Quote

>and ? how do I set validity checks at runtime?, I want to set
>today's  Date be the Default Value.
>I know how to do this on TDBEdit controls but ?how can I do the
>same on a DBGrid (when a new record is being inserted) ?

put code in the ttables onNewRecord Event

--
Brian Bushay (TeamB)
Bbus...@DataGuidance.com

Other Threads