I got this script that gets sent if something errors out. My problem
is that I would like to have the variable (source) be a part of the
message body.

This is what the message body looks like right now.
strEmailBody="Your machine PC has failed to backup one or more of the
requested files."

I want it to be like this:
strEmailBody="Your machine PC has failed to backup one or more of the
requested files from" &source". It was trying to backup to this
location: " &dest

However, when I try to do that it gives me an error: 'Expected end of
statement'

Thanks!

Re: Variable within 'Email Body' by S

S
Thu Jul 19 11:06:51 CDT 2007

dude, this was already answered the first time you posted it!

look CLOSELY and figure it out!

strSource = "this is the source text"

strBigString = "this is some text " & strSource & " this is some more text"

strBigString now contains "this is some text this is the source text this is
some more text"

get it?




"yosseeppii" <yosseeppii@gmail.com> wrote in message
news:1184860665.706425.205900@n60g2000hse.googlegroups.com...
>I got this script that gets sent if something errors out. My problem
> is that I would like to have the variable (source) be a part of the
> message body.
>
> This is what the message body looks like right now.
> strEmailBody="Your machine PC has failed to backup one or more of the
> requested files."
>
> I want it to be like this:
> strEmailBody="Your machine PC has failed to backup one or more of the
> requested files from" &source". It was trying to backup to this
> location: " &dest
>
> However, when I try to do that it gives me an error: 'Expected end of
> statement'
>
> Thanks!
>


Re: Variable within 'Email Body' by Bill

Bill
Thu Jul 19 11:08:58 CDT 2007

Take another look at your variable value, the placement of quotes and =
ampersands (&).

--=20

Bill James


"yosseeppii" <yosseeppii@gmail.com> wrote in message =
news:1184860665.706425.205900@n60g2000hse.googlegroups.com...
>I got this script that gets sent if something errors out. My problem
> is that I would like to have the variable (source) be a part of the
> message body.
>=20
> This is what the message body looks like right now.
> strEmailBody=3D"Your machine PC has failed to backup one or more of =
the
> requested files."
>=20
> I want it to be like this:
> strEmailBody=3D"Your machine PC has failed to backup one or more of =
the
> requested files from" &source". It was trying to backup to this
> location: " &dest
>=20
> However, when I try to do that it gives me an error: 'Expected end of
> statement'
>=20
> Thanks!
>