Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Howto close only 1 table?

Status
Not open for further replies.

MdVries

Programmer
Apr 16, 2003
47
NL
********************************************
*My code
SELECT * FROM rolk1;
ORDER BY rolnummer, soort, rec_ord, id_ord;
INTO TABLE rolkaart;
********************************************


How can i close only the rolkaart table?
 
Better:
USE IN SELECT([rolkaart])

That way if the rolkaart is not opened for some reason your program doesn't bomb ;-)

Borislav Borissov
 
USE IN SELECT([rolkaart])

Just in case you've not met it before, Fox allows [ ] as being equivalent to ' and " so this is the same as:

Code:
USE IN SELECT('rolkaart')

SELECT('rolkaart') gives us the workarea holding the table which was opened under the alias of 'rolkaart'. If rolkaart isn't open then SELECT() returns zero and, as Borislav says, your program doesn't bomb.

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top