Purpose of Variant.ISCODEUNIT

Hi Anybody used Navision functions Variant.ISCODEUNIT and Variant.ISRECORD? Any code sample, i can’t see purpose.

Since a variant could be any type of object those methods are in place to you to write very generic code to hand any type of variable. IF Variant.ISCODEUNIT THEN EXIT(Variant.COUNTERFUNCTION); IF Variant.ISRECORD THEN EXIT(Variant.COUNT); Django