Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One cursor available but the other not
Message
De
26/07/2006 13:41:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
One cursor available but the other not
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01140317
Message ID:
01140317
Vues:
56
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform