Please help, I need to pass string to function with few optional parameters which needs to be replaced within string. Can someone help how can this be done, as im not to vb.net
String - "The <field1> is mandatory"
Variable - Employee Id
Output should be - "The Employee Id is mandatory"
Regards
You would be looking at the String.Replace method. something like this. Since strings are immutable it returns a new string with your corrected value you would then need to assign it to the old string.
You could also use the String.Format Method which uses composite formatting which will allow you to embed fields in your string then replace them with variables. something like this.