Yes, I thought this was interesting. A useful change, but no compatibility 
setting for this - all previous code that used OB Get type will need to be 
updated for version 16R/17. OB Get type can now return Is Date for dates, but 
it has a compatibility setting where it can be controlled.

Also noteworthy for version 17 (not sure about 16R).

C_PICTURE($picture)
C_OBJECT($object)

$object:=New object("picture";$picture)

$type:=OB Get type($object;"picture") `Returns Is Object
$valueType:=Value type($object.picture) `Returns Is Picture

John DeSoi, Ph.D.


> On Apr 26, 2018, at 9:06 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> The change is it no longer returns the ‘Object Array’ type (39). Any value
> that begins with a [ is interpreted as ‘Is collection’ (42).
> 
> Object arrays still work just fine but any code that evaluates an object by
> key type needs to be updated.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to