String functions not supported?

Results 1 to 2 of 2

Thread: String functions not supported?

  1. #1
    Join Date
    Dec 1969

    Default String functions not supported?

    I am trying to strip some characters from the end of a string. This is my code:<BR><BR> strCriteria = Mid(strCriteria, 0, len(strCriteria)-5)<BR><BR>When I try to run it, I get an error "Microsoft VBScript runtime (0x800A0005) Invalid procedure call or argument: &#039;Mid&#039;"<BR><BR>I get the same when I try to use the left or right string functions. I do not understand what is going on here! I am sure that these functions are supoprted in ASP, or am I wrong?<BR><BR>Any help appreciated, Ben

  2. #2
    Join Date
    Dec 1969

    Default RE: String functions not supported?

    Dim strCrit<BR><BR>strCrit = Mid(strCriteria, 0, len(strCriteria)-5)<BR><BR>I don&#039;t think you can use the variable you are trying to assign a value to here.<BR>

Posting Permissions

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