Comparining values

Results 1 to 2 of 2

Thread: Comparining values

  1. #1
    Join Date
    Dec 1969

    Default Comparining values

    I need to check a textfiled to see if it ends with *.abcde.fg.hi<BR>in my save.asp, before I save to the database.<BR><BR>What would be the right way to check for that?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Comparining values

    Try this:<BR><BR>Dim sTail<BR> sTail = "*.abcde.fg.hi"<BR><BR>If UCase(Right(textField, Len(sTail)) = UCase(sTail) Then<BR> &#039;it ends in the tail.<BR>End If<BR><BR>-Doug

Posting Permissions

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