1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Concatenating blanks to strings????

Discussion in 'Support' started by mathewsdw@sbcglobal.net, Mar 15, 2009.

  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]"
    [Z:\]Echo "%@UnQuote[%Blank]%@UnQuote[%ABC]"
    [Z:\]Echo "%@UnQuote[%ABC]%@UnQuote[%Blank]%@UnQuote[%ABC]"

    Any suggestions?

    TCC 10.00.57 Windows Vista [Version 6.0.6001]
  2. vefatica

    May 20, 2008
    Likes Received:
    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
  3. 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

Share This Page