Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01135522
Message ID:
01135523
Views:
13
>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??

ARRAYs is always 1 based (as all things in VFP), no Zero element in array :o)
For i=1 to gncount
    tempvar=ttime[i]
NEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform