Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27177

VS 2010 How to remove comments in simple compiler

$
0
0
I have to create a simple compiler as a project and need to know how to remove comments from a text box input on a button click.
I currently have the following piece of code to remove the blank lines in the text box:
' Removes the blank lines from the source code
txtAlteredCode.Text = Replace(txtSourceCode.Text, vbLf & vbCr, "")

I need to remove anything with the apostrophe prefix from the original text box (txtSourceCode)

any help would be appreciated,
Thanks

Viewing all articles
Browse latest Browse all 27177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>