Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make field in form visible only when a condition is met
Message
From
30/10/2002 12:56:16
 
 
To
30/10/2002 12:45:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00716977
Message ID:
00716986
Views:
17
Andy

Create a method called showfield and it that have

IF ThisForm.CustType.Value='prospect'
ThisForm.CustType.Visisvle=.T.
Else
ThisForm.CustType.Visisvle=.F.
ENDIF

and in your navagiation buttons top,prior,next,buttom put

dodefault()
thisform.showfield()

HTH


>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
Previous
Reply
Map
View

Click here to load this message in the networking platform