Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
So maybe when that's used you could change the prompt to the same without \\ prefix and enable a button that way. The question now is how to change a button prompt or make it dynamically depend on a variable you can change.To disable a single push button, place two backslashes (\\) before the button's prompt.
I didn't talk about hiding or showing buttons. I don't know where you have your eyes, Scott, I quoted the lagacy help expliitly mentioning how you can enable/disable (that's not showing/hiding) Buttons done with @...GET by setting prompts (that's captions, I think) with \\ prefix or not:but the ability to Hide/Show the button (Visible = .T./Visible = .F.) does not.
I think you can only set the prompt when issuing the command, it can't be dynamic. Maybe you can, but mmerlin should know that better than me.To disable a single push button, place two backslashes (\\) before the button's prompt.
That comes from the help. And it's the third time I post this, you're not noticing much.To disable a single push button, place two backslashes (\\) before the button's prompt.
...
PROCEDURE SHOWGETS
*
IF M.EDITING OR M.ADDING && If either of these are true .T.
*
SHOW GET M.SAVERECORD ENABLE
SHOW GET M.CANCEL ENABLE
SHOW GET M.NEWRECORD DISABLE
SHOW GET M.EDITRECORD DISABLE
SHOW GET M.QUITSCREEN DISABLE
SHOW GET M.CONTROLPOS DISABLE
*
IF NOT DELETED()
SHOW GET M.DELRECORD,1 PROMPT '\<Delete' DISABLE
ELSE
SHOW GET M.DELRECORD,1 PROMPT '\<Recall' DISABLE
ENDIF
ELSE && User is in Browse mode... Both are False .F.
*
SHOW GET M.SAVERECORD DISABLE
SHOW GET M.CANCEL DISABLE
SHOW GET M.QUITSCREEN ENABLE
IF DELETED()
SHOW GET M.EDITRECORD DISABLED
ELSE
SHOW GET M.EDITRECORD ENABLE
ENDIF
SHOW GET M.NEWRECORD ENABLE
SHOW GET M.CONTROLPOS ENABLE
SHOW GET M.COPYRECORD ENABLE
*
IF NOT DELETED()
SHOW GET M.DELRECORD,1 PROMPT '\<Delete' ENABLE
ELSE
SHOW GET M.DELRECORD,1 PROMPT '\<Recall' ENABLE
ENDIF
*
ENDIF