A
A
amadon2020-11-05 21:22:25
Visual Basic
amadon, 2020-11-05 21:22:25

Replacing text up to a specific character?

It is necessary that the replacement works only up to a certain place in the text, for example, up to the @ symbol

Dim filter As String
        filter = TextBox1.Text.Replace("A", "").Replace("a", "")

        TextBox2.Text = filter

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-11-05
@firedragon

Split
Substring
Something like this

B
BasiC2k, 2020-11-05
@BasiC2k

Split the string into two parts.
Make a change in the first part.
Connect the lines back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question