split....error...

Results 1 to 4 of 4

Thread: split....error...

  1. #1
    angie Guest

    Default split....error...

    Hi...<BR>Users are sending feedback via browser through a textarea form. I copy the feedback data to a text file. Now I want to view the file in my browser, selected by a particular date. <BR>Here is an e.g of my textfile (CSV file):<BR><BR>************************************ **********************<BR>System Name; User Name ;Date & Time ; Error Report<BR>NWWKS3;Rudy Lim;19/8/99 4:11:12PM;the file not found <BR>********************************************** ****************<BR><BR>The script to select by date was:<BR><BR>Do While NOT MyStream.AtEndOfStream<BR><BR><BR> strline = MyStream.ReadLine<BR> splitter = split(strline,";")<BR> <BR> <BR>UserSwInstallDate_time = split(splitter(2),"")<BR>UserSwInstallDate = UserSwInstallDate_time(0)<BR><BR>Here I get the date and compare ot with the date I selected to view....<BR>I get the corect data on my browser but with the following error:<BR><BR>Microsoft VBScript runtime error &#039 800a0009&#039 <BR>Subscript out of range: &#039[number: 2]&#039 <BR><BR>What&#039s wrong here????<BR> But When user send me data from a radio form I get no such error...why do i get it with a textarea form? <BR><BR>can anyone help pls?<BR>Thanks a lot!<BR><BR> <BR><BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    19

    Default RE: split....error...

    Are you Julie ???

  3. #3
    Join Date
    Dec 1969
    Posts
    19

    Default RE: split....error...

    Are you Julie ???

  4. #4
    Join Date
    Dec 1969
    Posts
    760

    Default RE: split....error...

    You probably have one more line than you think.<BR>A line with only vbCrLf.<BR>You could test that the line HAS a ";" before you split on it<BR><BR>Does your code look like this?<BR>&lt;/textarea&#062;<BR>&#060;%<BR><BR><BR><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
  •