stripping of invalid chars ....PLEASE HELP

Results 1 to 2 of 2

Thread: stripping of invalid chars ....PLEASE HELP

  1. #1
    genic Guest

    Default stripping of invalid chars ....PLEASE HELP

    here is what i have, and it doesnt work. the main one i want removed is the pound sign.<BR><BR>strSid=StripInvalidCharactersFromName (request.form("sid"))<BR><BR>Function StripInvalidCharactersFromName(strValue)<BR> Dim lngPos<BR> Dim strNew<BR> Dim strChar<BR> For lngPos = 1 To Len(strValue)<BR> strChar = Mid(strValue, lngPos, 1)<BR> If (asc(ucase(strChar))&#062;= 65 And asc(ucase(strChar))&#060;= 90) or IsNumeric(strChar) Then<BR> strNew = strNew & strChar<BR> Else<BR> Select Case strChar<BR> Case "#":<BR> strNew = strNew & strChar<BR> End Select<BR> End If<BR> Next<BR> StripInvalidCharactersFromName = strNew<BR>End Function

  2. #2
    genic Guest

    Default nevermind, i fixed it


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts