Skip to Content
Former Member
Sep 22, 2008 at 07:16 PM

Replacing text containing parameters


I am attempting to replace text in various textboxes throughout a report in VB.NET. I am able to do all the text replacement I want, but anytime I pull out text with parameters in it, it seems the parameters are re-inserted as text as opposed to a dynamic parameter value.

For example, if I have a text box with the text "Message 1 - {?MyParam}" and replace it with the text "Message 2 - {?MyParam}", I will always get the literal text of {?MyParam} instead of the parameter's actual value.

Is there some special text I need to insert in order for the text box to act like it contains a parameter?