|
-
Jun 21st, 2006, 01:43 PM
#1
Re: Text file loop
 Originally Posted by tiguy
This loops through 32766 line before i get this error.
You have hit the max an Integer can hold. Change all of your Integers to Longs.
-
Jun 21st, 2006, 01:50 PM
#2
Lively Member
Re: Text file loop
no need to change iInputFile and iOutputFile to Long
-
Jun 21st, 2006, 01:55 PM
#3
Re: Text file loop
 Originally Posted by Agilaz
no need to change iInputFile and iOutputFile to Long 
I never use Integers for anything out of habit because I have been bitten by this situation one too many times.
Even if I need to loop through 5 items, I still use a Long.
-
Jun 21st, 2006, 02:00 PM
#4
Thread Starter
Lively Member
Re: Text file loop
Hey that did not work. i'm still getting the same error.
Any help?
-
Jun 21st, 2006, 02:07 PM
#5
Lively Member
Re: Text file loop
 Originally Posted by Hack
I never use Integers for anything out of habit because I have been bitten by this situation one too many times.
Even if I need to loop through 5 items, I still use a Long. 
but freefile() always returns a Integer so there's no need to let VB convert it to Long
@tiguy
change all cInt() to cLng()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|