Loading...
 

CX_TERMED::SpanDateValidity

CX_TERMED::SpanDateValidity

Description:

This access function allows access to the validity period of the object. The function can only process strings. The transferred string is imported into a CX_SPAN_DATE, which defines the new validity period of this object.

By transferring an empty string, the validity date is deleted again and the object is therefore always valid.

Note: Wrappers have their own validity and the validity of a wrapped object is defined by the intersection of the two validities (wrapper & object). CX_DESCRIPTIVE_REF::SpanDateValidity therefore behaves differently to all other classes.

Code example:
myObject Copy(SpanDateValidity()) // "01.01.2022-31.12.2022" "01.01.2025-31.12.2025" myObject Put(SpanDateValidity()) // Reset validity to "always valid" "" myObject Put(SpanDateValidity())
Function call: (CX_TERMED::SpanDateValidity(), ...)