>public function myFunc(...) as string > Dim sStr As New System.Text.StringBuilder("") > > Try > ... some code here ... > Return sStr.ToString > > Catch ex As Exception > ... some code here ... > > Finally > sStr = Nothing > End Try > > End Function > >Doesn't look correct to me. I would keep the return statement as the last one in this procedure.