Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro not obeying me outside debug
Message
From
16/05/2007 07:30:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Foxpro not obeying me outside debug
Environment versions
Visual FoxPro:
FoxPro Dos
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01225905
Message ID:
01225905
Views:
54
The darndest thing. Please look at the code below (not mine but I've amended it). At the end of this code the table ERROR (or as I've aliased it "ERRTABLE" in case reserved word problem) is not closed. But if I run it in debug I see it close before the return.

I've tried several permutations, including selecting the table before the USE IN command, inc. releasing the window AFTER the USE.

What gives?!

'ppreciate it.

Terry
procedure showerrs
define wind error from 0,0 to 20,79 color scheme 10
select 9
* TPMcD 25/04/07 use error
use error Alias ERRTABLE		&& TPMcD 25/04/07
goto bottom
do prompt with "<esc>to exit, Page Up/down to view"
browse fields "No"=errno,"Program"=errprog,"Line"=errline,;
   "Date"=errdate,"Time"=errtime,"Error"=errmess ;
   noedit nodelete noappend window error
   
* TPMcD 25/04/07 use
release wind error

* Select Error					&& TPMcD 25/04/07

USE in ERRTABLE					&& TPMcD 25/04/07
return
- 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