>Hello.
>
>I need to block (Readonly = TRUE or enabled = FALSE) all objects in a page when the record meets a condition only.
>I have one grid (one combo inside), command buttons and one edit box in the page.
>
>What is the best way to do this?
>
>I have tried different things but they don't work well,the problems occur when i select a record in the grid meeting the condition and then select a different one.
>
>Thanks.
>
>
>Juan Carlos
Hi Juan,
In Page.Activate() event. Put the following code.
IF
This.SETALL('Enabled',.F.)
ELSE
This.SETALL('Enabled',.T.)
ENDIF
Bye
Jayesh
- Jayesh