Mehrzeilige Kommandos
Hi!
jawohl, ich möchte es ins schaffen den Ruf als derjenige mit den schlechtesten Titeln zu bekommen Ich weiß auch nicht, heute klappt nix
Folgendes soll erreicht werden:
objMessage.HTMLBody = "This is a automatic generated email for the NOC to inform them that the second Umero Server (10.0.217.117) has rebooted
<strong>successfully</strong>.<p>The follwing services were started successfully:</p>
" & "<strong>" & sStatusMsg & "</strong>" & sStatusMsg1
steht in meiner vb Datei in einer Zeile .... der übersichtlichkeit hätte ich den Code gerne so dort stehen:
objMessage.HTMLBody = "This is a automatic generated email for the NOC to inform them that the second Umero Server (10.0.217.117) has rebooted
<strong>successfully</strong>.
<p>The follwing services were started successfully:</p>
"
&
"<strong>" & sStatusMsg & "</strong>"
&
sStatusMsg1
so, das will er aber nicht und mault dann das ihm eine Aktion fehlt. Wie kriege ich das hin?
Grüße,
Matthias
jawohl, ich möchte es ins schaffen den Ruf als derjenige mit den schlechtesten Titeln zu bekommen Ich weiß auch nicht, heute klappt nix
Folgendes soll erreicht werden:
objMessage.HTMLBody = "This is a automatic generated email for the NOC to inform them that the second Umero Server (10.0.217.117) has rebooted
<strong>successfully</strong>.<p>The follwing services were started successfully:</p>
" & "<strong>" & sStatusMsg & "</strong>" & sStatusMsg1
steht in meiner vb Datei in einer Zeile .... der übersichtlichkeit hätte ich den Code gerne so dort stehen:
objMessage.HTMLBody = "This is a automatic generated email for the NOC to inform them that the second Umero Server (10.0.217.117) has rebooted
<strong>successfully</strong>.
<p>The follwing services were started successfully:</p>
"
&
"<strong>" & sStatusMsg & "</strong>"
&
sStatusMsg1
so, das will er aber nicht und mault dann das ihm eine Aktion fehlt. Wie kriege ich das hin?
Grüße,
Matthias
Please also mark the comments that contributed to the solution of the article
Content-Key: 45105
Url: https://administrator.de/contentid/45105
Printed on: April 24, 2024 at 22:04 o'clock
3 Comments
Latest comment
Hallo RealFairPlayer!
Um eine VB-Zeile umzubrechen (aber nicht zu unterbrechen), verwende "_" am Ende, zB
Grüße
bastla
Um eine VB-Zeile umzubrechen (aber nicht zu unterbrechen), verwende "_" am Ende, zB
objMessage.HTMLBody = "This is a automatic generated email for the NOC to inform them that the second Umero Server (10.0.217.117) has rebooted" & _
"<strong>successfully</strong>." & _
"<p>The follwing services were started successfully:</p>" & _
"<strong>" & sStatusMsg & "</strong>" & _
sStatusMsg1
Grüße
bastla