Inside a HTML email, splt variable, first part in bold, second part normal text


#1

Hello,

I’m trying to get this part of the code working.
This is an email in HTML and I need to split a variable, and make the left part of the division in bold, and the right part as normal text.

This is what I’m trying:
<html><b>"+Split(varExceptionsData,"-").ToString(0) +"</b>" +Split(varExceptionsData,"-").ToString(1)+"</html>

Can someone help me please?

Thank you!


#2

Your split would look like this :

varExceptionsData.Split("-"c)(0).ToString
varExceptionsData.Split("-"c)(1).ToString

Also take care about the space / separator that you would want to see in between your splits in the html. you have not specified any.


#3

Hello!

Thank you for your help!


#4

Most Welcome. :slight_smile:
Mark the answer as a solution if it works for you.


#5

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.