To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 7020
7019  |  7021
Subject: 
R: Save arrays in VB5
Newsgroups: 
lugnet.robotics
Date: 
Mon, 27 Sep 1999 09:12:36 GMT
Original-From: 
Roberto Amato <robertoamato@mclink.!StopSpammers!it>
Viewed: 
417 times
  
If you dimension an array of (say) 100 elements as : DIM a(100) as integer
the array elements goes from 0 to 99, for a total of 100. So if
your loop searches for a 100th elements it comes out with the
"subscript out of range" error. Either restate the loop or esplicitly
dim the array differently using the keyword "to" as : DIM a(1 TO 100) as
integer.

regards
Roberto


-----Messaggio Originale-----
Da: Andy Gombos <gombos@ne.infi.net>
A: <lego-robotics@crynwr.com>
Data invio: venerdì 24 settembre 1999 23.06
Oggetto: Save arrays in VB5


Does anyone know how to save an array in VB5? I have tried a for loop,
but it always says subscript out of range. It shouldn't be out of range
since I know how big the array is. Can anyone help? This is for a 2 step
scanner program.





Message is in Reply To:
  Save arrays in VB5
 
Does anyone know how to save an array in VB5? I have tried a for loop, but it always says subscript out of range. It shouldn't be out of range since I know how big the array is. Can anyone help? This is for a 2 step scanner program. (25 years ago, 24-Sep-99, to lugnet.robotics)

5 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR