Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overlay of fields - Make Visible and Invisible
Message
From
28/11/1998 04:57:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/11/1998 19:12:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00161874
Message ID:
00162106
Views:
20
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform