Hey Tim, Good point. I thought it might be an issue between 32 and 64 but I think I was just conflating the effect when dealing with other data types. ie.
C_LONGINT($i) C_OBJECT($obj) $t:=OB Get($obj;"key") // no error $i:=OB Get($obj;"key") // ** error $i:=OB Get($obj;"key";Is longint) // no error Or it could be when I was looking at compiled code. I haven't tested this rigorously yet. It's pretty helpful that it 'defaults to text' as it were. On Mon, Oct 30, 2017 at 12:20 PM, Tim Nevels via 4D_Tech < [email protected]> wrote: > 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] > ********************************************************************** > -- Kirk Brooks San Francisco, CA ======================= *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ********************************************************************** 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] **********************************************************************

