"contrex" <> wrote in message
news:4437cff6-76f7-4def-9974-...
> On 2 Oct, 18:46, Sam Kidman <samkid...@gmail.com> wrote:
>
>> archiveFolderName = "Archive for " + Date()
>
> You don't concatenate strings with a + in vbscript, and if the date
> string format set by locale settings includes slashes, you'll have an
> illegal filename.
While I agree that it is better to concatenate strings with "&", the
addition operator will, in some cases perform a concatenation. Try this:
msgbox "12" + "34"
the result I get is "1234", rather than 46. Of course, the results are less
predictable and consistent when the values operated on are contained in
variables...
/Al
|