I'm reading a DB and trying anyways to meet a criteria and if that is met fill in a list box with part of the row. I know my problem is in my array creation or adding to it but I'm at a loss. Any help much appreciated. Thanks
<%
'create arrays
DIM ProcArray()
DIM ProcPriceArray()
REDIM ProcArray(4)
REDIM ProcPriceArray(4)
Response.Write("<SELECT"
Do until Recordset.EOF
for x=0 to Recordset.Fields.count-1 'have to do this to get all of them
if Recordset("PartCode" = "P" Then 'get processor
ProcArray(x + 1)=Recordset("PartDesc"
ProcPriceArray(x + 1)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(ProcArray(x) & " "
Response.Write("$" & ProcPriceArray(x))
Response.Write("</OPTION>"
next 'so we populate all the records
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
%> provide tools to let people become their best.
<%
'create arrays
DIM ProcArray()
DIM ProcPriceArray()
REDIM ProcArray(4)
REDIM ProcPriceArray(4)
Response.Write("<SELECT"
Do until Recordset.EOF
for x=0 to Recordset.Fields.count-1 'have to do this to get all of them
if Recordset("PartCode" = "P" Then 'get processor
ProcArray(x + 1)=Recordset("PartDesc"
ProcPriceArray(x + 1)=Recordset("Price"
Response.Write("<OPTION>"
Response.Write(ProcArray(x) & " "
Response.Write("$" & ProcPriceArray(x))
Response.Write("</OPTION>"
next 'so we populate all the records
Recordset.MoveNext
Loop
Response.Write("</SELECT>"
%> provide tools to let people become their best.