Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One cursor available but the other not
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01140317
Message ID:
01140335
Views:
14
>>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
>
>
>Why you use alias when you test with FILE(), but use DBF when append :o)))
>
>If FILE( DBF([csrStep2a]))
>   Append From (DBF("csrStep2a"))
>EndIf
>
Hi BB

That didn't work either. Besides, how would FILE() work if its arguments aren't on the VFP path?

Thanks

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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform