Replacing, removing lines.
-
can anyone tell me a way to replace a line and to remove. I used this; doesn't work. ex:-Richtextbox1.lines(0).replace("sdf")
-
can anyone tell me a way to replace a line and to remove. I used this; doesn't work. ex:-Richtextbox1.lines(0).replace("sdf")
Your first error: The Replace method needs more than one parameter. Your second error: The Replace method doesn't change a string, it returns a new string instance that contains the changes.
Richtextbox1.lines(0) = Richtextbox1.lines(0).Replace("sdf", String.Empty)
--- single minded; short sighted; long gone;
-
Your first error: The Replace method needs more than one parameter. Your second error: The Replace method doesn't change a string, it returns a new string instance that contains the changes.
Richtextbox1.lines(0) = Richtextbox1.lines(0).Replace("sdf", String.Empty)
--- single minded; short sighted; long gone;
-
Standard question #1: What do you mean by "not working"? Standard question #2: What error message do you get? Standard question #3: What does your code look like?
--- single minded; short sighted; long gone;