Re: How to determine if a SET exists?

2016-10-19 Thread Tom Dillon
Kirk Brooks wrote: >That being said I think the best solution for me right now is the error 39 >trap Jeremy and David and some others have suggested. Just FYI, the Save Set command saves the specified set to a document unless the set does not exist, in which case no document is created, no

Re: How to determine if a SET exists?

2016-10-18 Thread Kirk Brooks
David, On Tue, Oct 18, 2016 at 5:12 PM, David Adams wrote: > I thought that I already had a Set_Exists("Set_Name") : Boolean > function...but I didn't. Thanks for the conversation, ​Almost always ready to converse. And "yeah, I thought I had that too" until I tried to find

Re: How to determine if a SET exists?

2016-10-18 Thread John DeSoi
I thought about this as a feature request, but I have not officially posted it yet. It would be really useful if 4D could call a method of your choosing when an object goes out of scope (no more references to it). Lots of other languages have something like this which allows you to ensure that

Re: How to determine if a SET exists?

2016-10-18 Thread David Adams
I thought that I already had a Set_Exists("Set_Name") : Boolean function...but I didn't. Thanks for the conversation, this code works in V13 (what I have open right now): C_BOOLEAN($0;$exists) C_TEXT($1;$set_name) $set_name:=$1 Error:=0 ErrorHandler_Install ("ErrorHandler_SuppressError")

Re: How to determine if a SET exists?

2016-10-18 Thread Douglas von Roeder
On Tue, Oct 18, 2016 at 10:46 AM, Kirk Brooks wrote: > Doug, > I thought about that too. But then I'm fiddling around with the current > selection. > > I guess there's no issue with simply re-creating a set if it has no records > in it.. > Kirk: Agreed. I just ran a bit

Re: How to determine if a SET exists?

2016-10-18 Thread Kirk Brooks
Randy, That was my first thought too. In this case I need to know if the set has been attempted to be created. But maybe not. Have to work with what I have I suppose. On Tue, Oct 18, 2016 at 8:16 AM, Randy Engle <4d.l...@xc2.us> wrote: > Kirk, > > It's not 100% what you are looking for, but I'm

Re: How to determine if a SET exists?

2016-10-18 Thread Douglas von Roeder
-- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Kirk > Brooks > Sent: Tuesday, October 18, 2016 7:35 AM > To: 4D iNug Technical <4d_tech@lists.4d.com> > Subject: How to determine if a SET exists? > > Hi all, > Is there a way to determine if a

RE: How to determine if a SET exists?

2016-10-18 Thread Randy Engle
e LLC -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Kirk Brooks Sent: Tuesday, October 18, 2016 7:35 AM To: 4D iNug Technical <4d_tech@lists.4d.com> Subject: How to determine if a SET exists? Hi all, Is there a way to determine if a set exists?

How to determine if a SET exists?

2016-10-18 Thread Kirk Brooks
Hi all, Is there a way to determine if a set exists? So far the only thing I've come up with requires keeping track of them as they are created. This is OK but unverifiable. It would be nice to have the equivalent of the 'Is a list' function. -- Kirk Brooks San Francisco, CA