RE: Confusing code

Author: Tracy Pearson

Posted: 2009-10-14 at 16:42:01

Doesn't the top one flush the table and release all the relations too?

Tracy

-----Original Message-----

From: MB Software Solutions General Account

Sent: Wednesday, October 14, 2009 4:09 PM

Here's the code:

USE (THIS.cPath+"QuitApp.dbf") IN (SELECT("QuitApp")) SHARED

SELECT (SELECT("QuitApp"))

Is this basically saying "use the table if it's not already being used;

otherwise, use it in a new area....and then select the area where it is.

Seems to me like it could have been written easier with a simple

IF NOT USED("QuitApp") THEN

USE this.cPath + "QuitApp" in 0

ENDIF

SELECT QuitApp

???

tia!

--Mike

©2009 Tracy Pearson