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))
Question about concatenating strings
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13309
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Question about concatenating strings
I don't understand why you would think they would be "a:".
The final set of prompts are using the undefined %mmmyyfirst. Perhaps that is a typo and it should be %mmyyfirst, but even then the result would not be "a:"
The final set of prompts are using the undefined %mmmyyfirst. Perhaps that is a typo and it should be %mmyyfirst, but even then the result would not be "a:"
Follow us on Twitter @IHSEViews
Re: Question about concatenating strings
My mistake, I meant to write "02a" and "a02", not "a:" and ":a".
"%mmmyyfirst" is a typo and it explains why my program wasn't working. Silly error on my part. Thanks for your help!
"%mmmyyfirst" is a typo and it explains why my program wasn't working. Silly error on my part. Thanks for your help!
Who is online
Users browsing this forum: Google [Bot] and 9 guests