Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with cursor names in VFP 9
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01057970
Message ID:
01057976
Views:
16
>>>I am moving a VFP 6 app to VFP 9 and running into problems with cursors. This happens with both kinds of cursors, the kind created by SELECT INTO CURSOR as well as CREATE CURSOR. These cursors are being created in the C:\Documents and Settings\username\Local Settings\Temp folder and have names such as 00002m8900cz.tmp. This application frequently creates cursors and then appends to real tables with APPEND FROM (lcDBF), where lcDBF is the saved DBF() name of the cursor. APPEND FROM is not working correctly, I believe because it does not like filenames starting with numeric characters. What can I do to get around this?
>>>
>>>Not sure exactly when this broke -- could be VFP 7, 8, or 9.
>>
>>Mike,
>>
>>APPEND FROM doesn't care about the name of the cursor's file on the disk as long as it Windows legal name. What exactly doesn't work correctly?
>
>A new land speed record, even for you!
>
>When I trace one of these programs through, I see the cursor being created and the temp file on disk. But before the contents of the cursor can be appended to a DBF, the cursor disappears. This all happens in sequential instructions. It seems erratic and even seems to behave differently with the debugger running. I am trying to put together a simple, reproducible code sample that will show the problem.
>
>Be back soon, I hope....

What is your temp folder? Could it be that some process is clearing its content without you knowing it? Make sure to use your own temp folder.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform