Question about concatenating strings
Posted: Wed Apr 25, 2018 8:49 am
Hello,
When a user runs the code below in EViews 10 and enters 0209 when asked by the dialog box, the first two prompts show the expected messages (02: and :02, respectively). The next final two prompts, however, both show "a" as the message, when the expected messages are "a:" and ":a"
@uidialog("edit", %mmyyfirst, "Enter 0209",4)
@uiprompt(@left(%mmyyfirst,2)+":")
@uiprompt(":"+@left(%mmyyfirst,2))
@uiprompt(@left(%mmmyyfirst,2)+"a")
@uiprompt("a"+@left(%mmmyyfirst,2))
When a user runs the code below in EViews 10 and enters 0209 when asked by the dialog box, the first two prompts show the expected messages (02: and :02, respectively). The next final two prompts, however, both show "a" as the message, when the expected messages are "a:" and ":a"
@uidialog("edit", %mmyyfirst, "Enter 0209",4)
@uiprompt(@left(%mmyyfirst,2)+":")
@uiprompt(":"+@left(%mmyyfirst,2))
@uiprompt(@left(%mmmyyfirst,2)+"a")
@uiprompt("a"+@left(%mmmyyfirst,2))