R
Rob Meade
Hi all,
I have written a small ProperCase function which I would like to make
available to our team at work through our common class library.
A colleague mentioned that I could write a new class which derived from the
String class, add the function there and then we would all use the new class
which contained my function and all of the others etc....sounded relatively
straight forward...
My problem is that I figured immediately after creating a new class I'd need
a line that Inherits...however, having check the documentation for the
String class, when I try adding:
Inherits System.String
I just a wiggly line in Visual Studio....If I add it with the Imports
statement it works fine...
Can anyone suggest what I might be doing wrong please...
My aim is to be able to do something like this:
Dim myString as String
myString = "HELLO WORLD"
myString = myString.ToProperCase()
Response.Write myString
The end result will appear as
Hello World
Please note I've done the function, just need to tie it into something...any
help appreciated..
Regards
Rob
I have written a small ProperCase function which I would like to make
available to our team at work through our common class library.
A colleague mentioned that I could write a new class which derived from the
String class, add the function there and then we would all use the new class
which contained my function and all of the others etc....sounded relatively
straight forward...
My problem is that I figured immediately after creating a new class I'd need
a line that Inherits...however, having check the documentation for the
String class, when I try adding:
Inherits System.String
I just a wiggly line in Visual Studio....If I add it with the Imports
statement it works fine...
Can anyone suggest what I might be doing wrong please...
My aim is to be able to do something like this:
Dim myString as String
myString = "HELLO WORLD"
myString = myString.ToProperCase()
Response.Write myString
The end result will appear as
Hello World
Please note I've done the function, just need to tie it into something...any
help appreciated..
Regards
Rob