>i want to use this codes in grids columans.
>
>SELE stn
>IF obt01>max01
> =MESSAGEBOX("input invalid")
>RETURN =.t.
>ENDIF
>
>i am enering the numaric data in this grid. but when value is obt01>max01 i want message.
>how and where i put this codes to get correct way
>thank
Put the code in LostFocus Event of Grid1.Text1 by Example
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst