PDA

View Full Version : How do you concatenate?



NewsArchive
06-18-2009, 01:33 AM
I want:

if thisvariable is not blank
thisvariable = thisvariable & '\win32'
end

I can't find that.

Robert Paresi

NewsArchive
06-18-2009, 01:34 AM
Maybe it's as easy as using Set Variable?

%VAR%\win32

Is that right?

-Robert

NewsArchive
06-18-2009, 01:35 AM
Robert,

> Maybe it's as easy as using Set Variable?

With "Append Value" checked...

Lee White (Lodestar)

NewsArchive
06-18-2009, 01:35 AM
Hi,

I guess my issue is sometimes the root is:

\sql anywhere

and other times it's

\sql anywhere\

So, when I'm adding \BIN32, Sometimes I get

\sql anywhere\bin32

or
\sql anywhere\\bin32

What would be the easy way in setup builder to do this?

ie:

if sub(clip(rootfolder),-1,1) <> '\'

How can I do that in SB easily so it's proper?

-Robert

NewsArchive
06-18-2009, 01:36 AM
Wow! Cool!

Rslash-Returns a copy of String without trailing slashes.

I guess someone already thought of it. :)

-Robert

NewsArchive
06-18-2009, 01:36 AM
Robert,

> Rslash-Returns a copy of String without trailing slashes.

I was just getting ready to reply when my system locked up! I really
need to get my new box up and running!!!

--
Lee White

Enroll Today at http://CWaddons.com