main logo
Subject: Re: Simple Question
Author: "Michael J. Babcock"
Posted: 2004/04/30 21:14:35
 
View Entire Thread
New Search


Cindy Winegarden wrote:
> One more comment - USE IN Alias will throw an error if Alias is not open. A
> really safe way to close tables is
>
> Use In Select("Alias")
>
> What this does is selects an empty work area if there is no table/cursor
> named Alias open at the time, which won't throw an error, and if Alias is
> open then it will be closed.
>
> Of course, you "know" your table is open but good programming practice
> suggests that we should never assume anything and we should program to avoid
> errors or handle them gracefully.

Hey, that sounds worth of a tip publication!! (Knowing that it was
published....) ;-)

--

Michael J. Babcock, MCP
President/CSA, MB Software Solutions, LLC
http://mbsoftwaresolutions.com
"Bettering your bottom line by helping you work smarter, not harder,
with custom software solutions."


 
©2004 Michael J. Babcock
<-- Prior Message New Search Next Message -->