Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make field in form visible only when a condition is met
Message
De
30/10/2002 13:00:00
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
30/10/2002 12:54:45
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00716977
Message ID:
00716993
Vues:
14
Oops. Should have read the post properly. Put the Refresh() call in your Nav buttons.

Liam



>Hi andy,
>
>In the Refresh method of the textbox (I'm assuming it's a textbox) put the following code :
>
>
This.Visible = (This.Value = 'prospect')
>
>Issue a Textbox.Refresh() or Thisform.Refresh() in the AfterRowColChange method of the grid (assuming that you're displaying the records in a grid).
>
>HTH
>
>Liam
>
>
>
>
>>I need to make a field visible only when a condition is met in a fomr.
>>I would like this to show when the record is shown in a form.
>>
>>Example:
>>I am using the wizard control buttons for next, prev. etc..
>>While scrolling through the records I want a field to show up
>>if the contents ='prospect' only and not when it ='customer'
>>
>>Tried in all properties of CustType but it didn't work
>>
>>IF ThisForm.CustType.Value='prospect'
>> ThisForm.CustType.Visisvle=.T.
>>Else
>> ThisForm.CustType.Visisvle=.F.
>>ENDIF
>>
>>Any suggestions?
>>
>>Andy
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform