realfairplayer
Goto Top

Mehrzeilige Kommandos

Hi!

jawohl, ich möchte es ins schaffen den Ruf als derjenige mit den schlechtesten Titeln zu bekommen face-smile Ich weiß auch nicht, heute klappt nix face-smile

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

Content-Key: 45105

Url: https://administrator.de/contentid/45105

Printed on: April 24, 2024 at 22:04 o'clock

Member: bastla
bastla Nov 22, 2006 at 14:20:19 (UTC)
Goto Top
Hallo RealFairPlayer!

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
Member: Biber
Biber Nov 22, 2006 at 15:46:04 (UTC)
Goto Top
...und leichter lesbar wird die Meldung, wenn Du statt...
Alt: "...The follwing services..."
Neu: "...The following services..."

Wenn ihr ohnehin noch am bastla'n seid... face-wink
Member: RealFairPlayer
RealFairPlayer Nov 22, 2006 at 16:35:40 (UTC)
Goto Top
Ihr seid die besten face-smile merci!

Matthias