Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Remove unwanted characters from a string
Author:
Graham Hayes
E-mail:
Click to e-mail author
Website:
http://www.hcoms.co.uk
Submitted:
7/4/2005
Version:
VB6
Compatibility:
VB6
Category:
String Manipulation
Views:
54836
This code removes unwanted characters from a string.
Declarations:
'none
Code:
Function PurgeString(OldStr As String) As String Dim NewStr As String Dim l As Long For l = 1 To Len(OldStr) If Asc(Mid(OldStr, l, 1)) > 31 Then NewStr = NewStr & Mid(OldStr, l, 1) End If Next PurgeString = NewStr End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement