See this thread where I got this issue: Cannot add rows to DataTable from another thread.
And specifically my solution to it, where it says
_dt.Rows.RemoveAt(_dt.Rows.Count - 1)
rem denotes a comment, an equivalent of
', but it should do some syntax analysis, because not everything that comes after string
rem is a comment.