On Oct 30, 2017, at 2:00 PM, Kirk Brooks wrote: > I've taken to always specifying the type when I use OB GET except in cases > like copying a key from one object to another. I like that OB GET doesn't > throw an error when it's typed and the key doesn't exist.
Hi Kirk, I did not know that if you include the type in OB GET and the property does not exist in the object you don’t get an error. I did a quick test of this with this code and did not get an error. C_OBJECT($o) C_TEXT($test_t) $test_t:=OB Get($o;"theProperty") $test_t:=OB Get($o;"theProperty";Is text) Is this a runtime error you get only when compiled? Tim ******************************************** Tim Nevels Innovative Solutions 785-749-3444 [email protected] ******************************************** ********************************************************************** 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:[email protected] **********************************************************************

