Awesome, thanks Cannon!

Jeff

--
Jeffrey Kain
jeffrey.k...@gmail.com

> On Feb 22, 2017, at 1:27 PM, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Jeff,
> 
>> If ((JSON Stringify($fieldPtr->))#(JSON Stringify(Old($fieldPtr->))))
> 
> This only works if the order of the keys in the object stays the same which 
> may not be true depending on how you change the object. I’ve pasted in a 
> method below that you can use to compare two objects which don’t care about 
> the order of keys. I use it in a similar situation to what you are doing and 
> it works well.
> 
> The method name is “OBJ_IsEqual”. It calls itself, so if you use a different 
> name make sure you change that in the code.
> 
> Vincent de Lachaux posted the original code which I then stole. :-)

**********************************************************************
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