Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    Unanswered: Splitting strings prob

    i have this code below, but getting an error for an object required for the repsonse.write line. i think this is because the inital state of the text box is empty. ive tried putting an if statement so that it only performs the spilt if the string is bigger than 1 but this has not solved the problem. any ideas? cheers in advance

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">



    <form name="form" method="post" action="test.asp">

    <input type="text" name="question" style="position:absolute; z-index:1; left: 160; top: 200" maxlength="50">
    <input type="Submit" name="Search" value="Search" style="position:absolute; z-index:1; left: 160; top: 250">



    Dim strquestion

    strquestion = request.form("question")

    if len(strquestion) > 0 then

    MyArray = Split(strquestion)
    strclub = MyArray(2)

    end if


  2. #2
    Join Date
    Nov 2003
    Christchurch, New Zealand
    assuming this is a direct copy of you code,...

    response.write is spelt wrong....

    The other problem could be that your string does not have the split character within 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