Global::nullValueBaseType Method [AX 2012]

Returns default (null) value for a given base type.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          client server public static anytype nullValueBaseType(Types _baseType, [boolean _enumAsInt])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static anytype nullValueBaseType(Types _baseType, [boolean _enumAsInt])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static anytype nullValueBaseType(Types baseType, [boolean enumAsInt])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static anytype nullValueBaseType(Types baseType, [boolean enumAsInt])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static anytype nullValueBaseType(Types baseType, [boolean enumAsInt])

Run On

Called

Parameters

_baseType
Type: Types Enumeration
Base type
_enumAsInt
Type: boolean
Treat base enum as integer

Return Value

Type: anytype
Default value for a given base type.

_enumAsInt: In some cases the kernel expects an integer instead of enum value.

For example when "adding" a struct it must be a enum, when setting a enum it must a integer.

Show: