• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Remove / Validate Line Breaks

Hey --

Line breaks are causing me alot of trouble and I need to somehow either validate them, so they can't submit until they take them out, or prep the sql string and just remove them automatically. But how would you say line break? Are there different types?

1 Solution
Here is one of I'm sure many way to remove line breaks

Dim str as string = "some text with line breaks.."
str = str.replace(vbCrLf, string.empty).replace(vbLf, string.empty)

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now