Creates a valid default value based on the defined type. If the AsList parameter is TRUE, this method returns a list value (AsList) containing correct values. This method ensures the created value will pass all the constraints and limits of the type definition
Namespace: IECSInterfaces
Delphi |
public |
Parameters
Aslist
Type: Boolean
Type: IIEValue
The default type for the slot is chosen from the list of allowed types for the slot in the following order of precedence: atom, string, integer, float, object, external address, fact id, fact, descriptor and class. All other types return an empty value. If the default type has a constraint (enumeration restriction), the first value from the constraint is chosen. If the default type is range limited, the minimum range is chosen. Otherwise, atoms and strings return an empty string (''); integer, floats, fact ids and descriptors return 0, and object, external address, fact, and class return nil. Fuzzy Types return FCNil |
Reference |