>I use Foxpro 2.0 for dos. I want to have two fields occupy the same space on a form and have only one visible at a time depending on the users choice. Can I use bring to front/back in code or is what I want to do impossible? Thanks for the help.
>
>Rhea Urusky
>rheau@beaverplastics.com
Like Cetin said, you can play with When, or (IMO) preferably with Show Get. Assuming you have the two GETs overlapping already, in some other snippet where you decide which one of them will be used, you may
if { condition comes here }
show get var1 disable
show get var2 enable
else
show get var2 disable
show get var1 enable
endif
There are other ways, like launching a small dialogue with one of the vars only, and it would require a READ for itself, but I think this is easier. Note that the enabled one comes later so it covers the disabled one.