>Is there a matching feature in VB.NET 2005 for the VFP of Text/EndText function.
>
>What I'm wanting to do is put the following into a string variable cSQL.
Alex is right, the best approach would be to use the StringBuilder. If there isn't a way to simulate the same VFP functionality in C#, I doubt there would be one in VB.NET. I haven't seen one so far and this is what I use. If you read your SQL code from an external entity such as a file on disk or a field from a table, then you can store that into a string or a string builder. But, if you are building this line by line, than the string builder is the way to go as you would face severe performance issue if you keep concatening new string content into another string.