Concatenating blanks to strings????

  • Thread starter mathewsdw@sbcglobal.net
  • Start date
  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
M

mathewsdw@sbcglobal.net

Guest
#1
It seems to me that I was able to do this in the past, but I absolutely don't seem to be able to do it now. All I want to do is to add a blank to an existing string, ("Set" variable), front end, back end, even in the middle, I don't care because I can just adjust the surrounding code to fit. Here are some examples (from my last few attempts) that can be done right at the command line:

[Z:\]Set ABC="ABC"
[Z:\]Set Blank=" "
[Z:\]Echo "%@UnQuote[%ABC]%@UnQuote[%Blank]"
"ABC"
[Z:\]Echo "%@UnQuote[%Blank]%@UnQuote[%ABC]"
"ABC"
[Z:\]Echo "%@UnQuote[%ABC]%@UnQuote[%Blank]%@UnQuote[%ABC]"
"ABCABC"

Any suggestions?


TCC 10.00.57 Windows Vista [Version 6.0.6001]
 
#2
On Sun, 15 Mar 2009 17:56:55 -0500, "mathewsdw@sbcglobal.net"
<> wrote:

|All I want to do is to add a blank to an existing string,

Experiment with ^s and ` `.
--
- Vince
 
M

mathewsdw@sbcglobal.net

Guest
#3
On Sun, 15 Mar 2009 17:56:55 -0500, "mathewsdw@sbcglobal.net"
<> wrote:

|All I want to do is to add a blank to an existing string,

Experiment with ^s and ` `.
--
- Vince
Thanks for getting back to me so quickly, Vince. However (and you didn't see it either) it's all due to a misunderstanding/screwup on my part. What I didn't realize (maybe due to my "exposure" to so many other languages) is that "@Replace" doesn't actually do the replacement(s) "in place", but instead returns the string with the indicated replacement(s) having been done! (DUH! :o) Anyway, sorry to have wasted your (and my) time!!!

- Dan