Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dbf not available when I HIDE WINDOW
Message
 
 
To
16/08/2001 14:58:46
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00544835
Message ID:
00545120
Views:
25
>>>>snip
>
>>>Pete,
>>>
>>>In the Debug window, enter the expression USED(< alias name >) and click the bar to set a break point after the window has opened the file. When it changes the execution should stop and you should be able to see what closed it (CLOSE ALL??) by issuing ACTIVATE WINDOW TRACE from the Command Window. Be sure, however, that all source files are on the fox path and the program, if compiled is up-to-date.
>>
>>
>>OK guys,
>>that's what I'm doing now.
>>
>>PETE
>
>
>This is what I found...
>
>from window; do prog
>-----
>USE templt IN 0 EXCLUSIVE && Working template file
>COPY TO &t_FIL1 && "SI" + week# file
>USE && Close templt
>
>IF SELECT('SIdates') = 0
>------
>
>The SIdates dbf is USED() until the USE line after COPY. I see I should have SELECTed templt before the USE. I had to look at it for a bit before I saw the error.
>
>Thanks guys!!!

Just put
use in Templt
to close Templt table. Also you don't need to use macro in the line bellow. Put copy to (m.t_fil1) instead.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform