N
Need_help
ASP Q:
I have an array with some values.
so I have values
Value(0,1)
Value(0,2)
Value(0,2)
....etc.
since the values are different size, I'm using
left(values(0,1),7)
So I can take first 7 digits out.
Normally I'm looping through the array and I'm using form like this:
CDbl(Left(CStr(values(0, 1)),7))
Everything goes perfect, but when I put m insted of 1
check = True : m=1
do
do while n<59
value1= CDbl(Left(CStr(values(0, m)),7))
m=m+1
if n=58 then
check = False
exit do
end if
loop
returns message like this:
Type mismatch: 'CDbl'
How I can solve this so I can get normal value so I can for e.g. add 1 to
value 1
Thanx
I have an array with some values.
so I have values
Value(0,1)
Value(0,2)
Value(0,2)
....etc.
since the values are different size, I'm using
left(values(0,1),7)
So I can take first 7 digits out.
Normally I'm looping through the array and I'm using form like this:
CDbl(Left(CStr(values(0, 1)),7))
Everything goes perfect, but when I put m insted of 1
check = True : m=1
do
do while n<59
value1= CDbl(Left(CStr(values(0, m)),7))
m=m+1
if n=58 then
check = False
exit do
end if
loop
returns message like this:
Type mismatch: 'CDbl'
How I can solve this so I can get normal value so I can for e.g. add 1 to
value 1
Thanx