shanuragu
06-19-2003, 06:08 AM
Hi
Please tell me what is wrong with the following piece of code
b=Split(QtyValue,",")
'Response.Write("arra" & b(4) & "<br>")
'Response.Write("arralen" & UBound(b) & "<br>")
for i=0 To UBound(b)
if b(i)>0 Then
qtyarr(i)=b(i)
else
response.write("false")
end if
Next
Here b array can have values like 1,,2,,,,5,6,3 etc its length is 14(it can also have 14 numbers it depends on the user selection).
My probelm is I have extract those numbers in between to another array say qtyarr.
Please help.
For the above code i ma getting the following error
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'b(...)'
/lila/asp/orderdetails.asp, line 68
ShaRa
Please tell me what is wrong with the following piece of code
b=Split(QtyValue,",")
'Response.Write("arra" & b(4) & "<br>")
'Response.Write("arralen" & UBound(b) & "<br>")
for i=0 To UBound(b)
if b(i)>0 Then
qtyarr(i)=b(i)
else
response.write("false")
end if
Next
Here b array can have values like 1,,2,,,,5,6,3 etc its length is 14(it can also have 14 numbers it depends on the user selection).
My probelm is I have extract those numbers in between to another array say qtyarr.
Please help.
For the above code i ma getting the following error
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'b(...)'
/lila/asp/orderdetails.asp, line 68
ShaRa