R
Robert Brown
Hi All
I have searched high and low but there seems nobody wants to do this..
For instance, I have a textbox that represents a Purchase Order Field.
Some users like typing non alphanumeric characters into this field.
What I was hoping is that I can use the replace function to set
anything not in a filter to ""
Ok, an example:
String typed in: #=98776@
String needed: 98776
I have seen one example for asp.net to use a filter in the replace
function, but this does not work in vb.net.
This is the line I tried:
sPOrder = Replace(sPOrder, "^.*[^A-Za-z0-9].*$", "")
And I have tried other variations of the above, but the desired result
is never returned.
Can anyone show an example of how this should work?
Thankyou All...
Robert
I have searched high and low but there seems nobody wants to do this..
For instance, I have a textbox that represents a Purchase Order Field.
Some users like typing non alphanumeric characters into this field.
What I was hoping is that I can use the replace function to set
anything not in a filter to ""
Ok, an example:
String typed in: #=98776@
String needed: 98776
I have seen one example for asp.net to use a filter in the replace
function, but this does not work in vb.net.
This is the line I tried:
sPOrder = Replace(sPOrder, "^.*[^A-Za-z0-9].*$", "")
And I have tried other variations of the above, but the desired result
is never returned.
Can anyone show an example of how this should work?
Thankyou All...
Robert