Struct.exists Method [AX 2012]
Determines whether a particular item exists in a struct.
The following example tests whether a particular item exists in a struct, and if not, it adds the item and assigns a value to it using the Struct.add method.
client server static void setProp(
Struct properties,
str name,
anytype value
)
{
if (! properties.exists(name))
{
properties.add(name,nullValue(value));
}
properties.value(name,value);
}
Community Additions
ADD
Show: