Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read Only property depending on record condition
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00146484
Message ID:
00146609
Vues:
38
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform