Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error File is not open - 1113
Message
From
16/11/2016 16:26:50
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
16/11/2016 16:08:11
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01643575
Message ID:
01643577
Views:
44
Koen,

Weird error. Is mycursor selected from another cursor or table that gets closed? Sometimes VFP will simply filter the FROM alias to mimic a new cursor. Adding NOFILTER to your SELECT statement might fix it.

Alternatively: I realize you've condensed the code - but would it be possible to replace the SCAN with something like
create cursor myCursor2  (field1 i, field2 m)
append from dbf('mycursor') for llcondition
or even
select field1,field2 from mycursor into mycursor2 where llcondition
- You could try commenting out that final SELECT mycursor at the end, since ENDSCAN does that implicitly. I don't think that's what's causing this, though.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform