Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Push Button Prompts
Message
De
10/02/2000 13:28:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Push Button Prompts
Divers
Thread ID:
00330186
Message ID:
00330186
Vues:
60
Hey gang,

Man, do I feel silly asking this question, but I just can't seem to get this to work. This is actually an FPDOS 2.0 question, but would apply most likely to FPW 2.6 as well:

I have a push button and I want to toggle the prompt that it displays. The initial @GET is this:
pFilter    = "Pick Dept"
pNewDept   = "New Department"

pShowIt    = '"@*HN ' + ALLTRIM(pFilter) + '"'
m.FilterIt = ALLTRIM(pFilter)

@ 0,24 get m.FilterIt ;
   picture &pShowIt ;
   size 1,14,1 ;
   valid DeptValid()
OK, elsewhere on the screen is a push button that executes code to change the prompt:
pShowIt    = '"@*HN ' + ALLTRIM(pNewDept) + '"'
m.FilterIt = ALLTRIM(pNewDept)

@ 0,20 CLEAR TO 0,40
@ 0,20 get m.FilterIt ;
   picture &pShowIt ;
   size 1,18,1 ;
   valid DeptValid()

show get m.FilterIt
There's another button that's supposed to change it back to the original as well.

So, what happens? Well, when the @Get for the new prompt executes, you can see the new prompt behind the original prompt (only cuz it's larger), but I can't seem to get rid of the original prompt, the @CLEAR doesn't seem to be doing it.

What am I missing???
TIA,
Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform