>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
Rhea,
You could do it :) Here in example suppose you have a variable m.which that controls which one would be displayed. Key elements :
- Each overlapping control has a when clause referring to m.which
@ 1,1 get control1 ... when m.which = 1
@ 1,1 get control2 ... when m.which = 2
You simply change (m.which = 1) to your lExpression
- You add a function (say shgets) to your cleanup and every code calling "show gets" calls shgets() instead
=shgets()
@ nRow,nCol get .. valid shgets()
function shgets
show gets
if m.which = 1
show get control1
else
show get control2
endif
Cetin