While working on a MAS 500 .NET application of my own, I played around with the existing StringUtils.DLL used in VB 6 code to see if I could use it in a VB .NET program. If you are not familiar with this one, it is the DLL with functions such as gsQuoted to format strings for SQL statements and gsZeroFill.

To add this to a .NET project simply add it as a reference and set the following code where you will be using this:
Imports StringUtils

'Set a module level variable to act as it.
Private moStringUtil As New StringUtils.CStringUtils

'When you want to use it simply make a call as follows:
moStringUtil.qsQuoted("SomeString") 'Result 'SomeString'

---------------------
Louis Davis
MCSD, MCAD .NET

Last edited Jan 31, 2007 at 4:21 PM by MAltadonna, version 1

Comments

No comments yet.