[thelist] ASP Tip

Ewing, Christopher CEwing at sscinc.com
Fri, 3 Dec 1999 14:33:56 -0500


Well based upon SGD's answer here is the complte answer to my coding
problem.

<tip type="VBscript">
Dim i 	  
MyArray=Split (UserAnswer,",",-1)
 For i = 0 To UBound(MyArray)
  RS("AnswerID") = MyArray(i)
  RS.Update
 Next

The reason for this is that I have a form that contains a "pick as many as
apply" field in it.  HTML returns this as a string of values separated by
commas.  The Split function separates these into entries in an Array. By
using the UBound function, you can loop until the end of these entries (as
the exact number will be unknown.)

</tip>

...When I grow up I want to be SGD.