Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
From
11/07/2006 17:09:47
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01135522
Message ID:
01135524
Views:
10
>hey folks,
>Im populating an array from a dbf file( only one field ). Now Im trying to update mysql database from this array..here is the pseudocode
>
>SELECT tempt FROM tlog;
>into ARRAY ttime ;
>gncount=_TALLY
>
>For i=0 to gncount -1 step 1
>tempvar=ttime[i]-- I get an error here "Invalid subscript reference"
>
>why is this so??

The first element of your array is 1 not 0.
For i=1 to gncount
should work properly
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Previous
Reply
Map
View

Click here to load this message in the networking platform