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
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