Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One cursor available but the other not
Message
From
26/07/2006 13:41:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
One cursor available but the other not
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01140317
Message ID:
01140317
Views:
55
I select certain data into a cursor:
Select ...
  INTO CURSOR csrStep2 NOFILTER READWRITE 
and later similar data into another:
Select ...
 INTO CURSOR csrStep2a NOFILTER READWRITE 
A little bit later I need to amalgamate them:
Select csrStep2
If FILE( "csrStep2a.dbf")
   Append From DBF("csrStep2a")
EndIf
I need to check 1st if csrStep2a exists cos sometimes the 2nd Select bears no results and so the append gives an error.

The FILE() fails and it doesn't happen. I guess it's because the cursors get weird system gen'd names and get buried in a \temp folder.

So, I'm having what the Americans call a "brain fart" at the moment. I've been runnin' an' shootin' and fightin' all day and now I can't think how to find the other cursor and check if it exists.

Somebody HELP meh!

'ppreciate it

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Next
Reply
Map
View

Click here to load this message in the networking platform