>You're "creating" strings inside your loop with this statement:
>
> lcString = Mid(lcString, lnLocation + 2)
>
>This is where you would benefit from using StringBuilder.
>
>The example from the VFP Toolkit for .NET doesn't need StringBuilder because it doesn't do this.
The first example loops thru all characters. So, if I am passing a 17k string, for example, that would mean it would process in the loop 17000 times. I like the second example as it uses a position to start on the next occurence. I will adjust for that one. I use StringBuilder on a lot of places. It is just that this one hasn't been optimized yet. I will do that now. Thanks