>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,
Hi Bonnie,
What I don't see is something like:
SHOW GET varname PROMPT promptstring
where varname is the variable name, and promptstring is the prompt you want to display. This was FPD 2.5, however.
George
Ubi caritas et amor, deus ibi est