Depending on the scope of the set you can wrap the CREATE SET and CREATE
EMPTY SET so each time a set is created you add it to an Object or Array.

Then you simply test if that set name is in the array.

The same wrapper can be used when the set is Cleared so the arrays/ object
is in sync.

It is so easy to lose track of which objects have been created / cleared.

On Wed, Oct 19, 2016 at 7:31 AM, Jeremy French <jeremyfre...@mac.com> wrote:

> Hi Kirk,
>
> Have you tried trapping for error code 39 ("The set does not exist") with
> the command "Is in set"?
>
> If the set is nonexistent, error 39 ("The set does not exist") occurs.
>
> So you could have method that you pass the set name to, invoke ON ERR
> CALL, call the “Is in set” command, and return the boolean result of “error
> = 0”.
>
> Jeremy French
>
>
> > On Oct 18, 2016, at 10:35 AM, Kirk Brooks <lists.k...@gmail.com> wrote:
> >
> > Is there a way to determine if a set exists?
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
>



-- 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"There must be ingenuity as well as intention, strategy as well as
strength. "
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to