473,378 Members | 1,280 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Qustion:

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
Jul 19 '05 #1
1 1374
Need_help wrote on 29 aug 2003 in
microsoft.public.inetserver.asp.general:
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

the value of m will go up to 2, 3, 4, 5, ...
and the array is not that big.

but the value of n stays what it was, when/if you initialized it and
never reaches 58
How I can solve this so I can get normal value so I can for
e.g. add 1 to value 1


m = 1 + 1

solution:

please tell us what you realy want to accomplish

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Taewoon Kwon | last post by:
Nowadays, I learn about perl ithreads, reading perlthrtut perldoc. I tested a sample code in that document #---code start use threads; $thr = threads->new(\&sub1); @ReturnData =...
1
by: Ann and John | last post by:
I understand the limitation of Cookies and how they are written and retrieved - but Is it possible, without client input, to have Cookie Data sent back to be ie Visitor 1 has visited 25 times...
4
by: mross462 | last post by:
Hello, At my work we are implementing a progress bar status display which increments a percentage bar by the number of bytes read of a file and then comparing that to the full filesisze. We are...
4
by: Franklin Li | last post by:
Hi All, In Richard's book AUEP, one example as below. But I compile with gcc in Soalris 9. It will report error. gcc -I/usr/include -I/opt/exp/include -I/opt/exp/gnu/include -Wall -Dsun -c...
1
by: msnews.microsoft.com | last post by:
Hi Below is a code snippet that returns XML from SQL server... than I iterate to get all records that are appended to a StringBuilder object /** Pseudo Code **/ SQLReader =...
3
by: cmay | last post by:
I am trying to build more applications using a more OO approach, with more seperation of business and presentation logic. One problem I am running into involves the design philosophy behind...
0
by: Laurent Duperval | last post by:
HI, I'm using pgadmin III 1.2.0 Post Beta 1 (Sept 17 2004). I used it to execute a SQL script that creates tables and inserts data. At the end, I get a message saying that everything went...
0
by: marc.derider | last post by:
I was making a change to a Web service. It was something extremely trivial, such as adding a single parameter to extend the functionality exposed through that method. It got me to thinking...
8
by: Yong W | last post by:
if A and B are Class type, what's mean about the next sentence? " int A::*B::*pMember; " And how to use this pointer ? we assume A and B's definition is: class A { int a;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.