help with Arr split??

Results 1 to 2 of 2

Thread: help with Arr split??

  1. #1
    Join Date
    Dec 1969

    Default help with Arr split??

    I&#039;m trying to get a list of a names from this array:<BR>&#060;%<BR>dim temp<BR>temp = request("temp") <BR>myArr = split(temp, ", ") <BR>for i = 0 to UBOUND(myArr) <BR>response.write ""&i&""&temp&"<BR>"<BR>next<BR>%&#062;<BR>but it only gives me back numbers, and when I add in the "&temp&" is just writes out the whole string,<BR>how can I get names insted of numbers from this?<BR><BR>thanks in advance for your time.

  2. #2
    Join Date
    Dec 1969

    Default No no...not like that...

    *AFTER* you have done the SPLIT, then the ONLY thing you should be concerned with is the array!<BR><BR>&#060;%<BR>dim temp<BR>temp = request("temp") <BR>[hl="yellow"]Response.Write "DEBUG: before split, temp is " & temp & "&#060;HR&#062;"[/hl]<BR><BR>myArr = split(temp, ", ") <BR>for i = 0 to UBOUND(myArr) <BR> response.write i & ": " & [hl="yellow"]myArr(i)[/hl] & "&#060;br/&#062;"<BR>next<BR>%&#062;<BR><BR>*NOW* what does that show you?<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