Hi Vincent, his code is not quite equivalent to your code. His code:
SELECT 0 USE (lcfile) EXCLUSIVE ALIAS TMP is equivalent to this: USE (lcFile) EXCLUSIVE IN 0 ALIAS TMP SELECT Tmp Frank. Frank Cazabon Samaan Systems Ltd. - Developing Solutions www.SamaanSystems.com On 13/07/2011 09:55 PM, Vincent Teachout wrote: >> SELECT 0 >> USE (lcfile) EXCLUSIVE ALIAS TMP >> ** this is where it sometimes fails with message "No table is open" >> >> INDEX on client+trantype+DTOC(date) TAG tmp >> SET ORDER to 1 >> GO top > Off the top of my head, I believe your code is equivalent to: > > Use (lcFile) EXCLUSIVE IN 0 ALIAS TMP > > This does not automatically make the file the current work area. I bet > your message is coming from the Index line. > > Try adding SELECT TMP before the Index line. > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

