Hello community.
Is it somehow possible to format the text "-- Testfirma --" (= result of the variable "lbJob_scrNeuerKD_1") in bold and in blue within this formula?
If(lbJob_scrSpeichernErfolgreich.Text="neuKD";"Der neue Kunde " & Char(10) & Char(10) & "-- " & lbJob_scrNeuerKD_1 & " --" & Char(10) & Char(10) & "wurde erfolgreich gespeichert"; If(lbJob_scrSpeichernErfolgreich.Text="neuFZ";"Das neue Fahrzeug von " & Label11_4 & " wurde erfolgreich gespeichert";"???"))
Best regards
RoScha
It's like always ... if you know how it's so easy.
Perfect. I'm really happy that the problem is solved. ๐
Thank you so much @gabibalaban
Best regards
RoScha
@RoScha, here it is ๐
"<p style='text-align: center;'>Der neue Kunde</p>
<p style='text-align: center;'><strong><span style='color: #0000ff;'>"&lbJob_scrNeuerKD_1&"</span></strong></p>
<p style='text-align: center;'>wurde erfolgreich gespeichert</p>"
@gabibalaban Oh HTML, another programming language that I don't know.
Can you still show me how I can get my variable (lbJob_scrNeuerKD_1) into this HTML code because this variable flexibly shows the respective name (here in the example "Testfirma")
Best regards
RoScha
Hello ... you have 2 options to achieve that:
1. Use 3 label controls ( for each text row) and set the Color and FontWeight property of the "---Testfirma---" label according to your need;
2 Use a HtmlText control and on HtmlText property use:
"<p style='text-align: center;'>Der neue Kunde</p>
<p style='text-align: center;'><strong><span style='color: #0000ff;'>---TestFirma ---</span></strong></p>
<p style='text-align: center;'>wurde erfolgreich gespeichert</p>"
- please notice that I used quote(') and not double-quote (") inside Html code.
Personally I prefer the second choice to avoid load memory with 3 controls against 1.
WarrenBelz
146,751
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional