General information
Category:
Menus & Menu designer
Title:
Command contains unrecongnized phrase/keyword
Hi,
I keep getting a [Command contains unrecongnized phrase/keyword] when I try to put the following code into the rightclick event of a text box, it got stuck on the all of the define bar.... when I remove the word prompt and the content, it compile ok but it would be meaningless.
When I run in a prg, it was fine. So can anyone tell me what's going on.
ACTIVATE SCREEN
DEACTIVATE POPUP popMyPopup
DEFINE POPUP popMyPopup FROM MROW(),MCOL() MARGIN RELATIVE SHORTCUT
DEFINE BAR 1 OF popMyPopup PROMPT [1st Call]
DEFINE BAR 2 OF popMyPopup PROMPT [2nd Call]
DEFINE BAR 3 OF popMyPopup PROMPT [3rd Call]
DEFINE BAR 10 OF popMyPopup
ON SELECTION POPUP popMyPopup DEACTIVATE POPUP popMyPopup
ACTIVATE POPUP popMyPopup
RELEASE POPUP popMyPopup
DO CASE
CASE BAR() = 1
This.Value = "1st Call"
CASE BAR() = 2
This.Value = "2nd Call"
CASE BAR() = 3
This.Value = "3rd Call"
ENDCASE
Tony
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only