Skip to content

IS_VERSIONING_ENABLED

IS_VERSIONING_ENABLED checks whether or not the time based versioning is enabled in the current library.

Syntax

leo-grammar
CC "Core" IS_VERSIONING_ENABLED

#--> RESULT ecode:intValue versioning:boolValue
CC "Core" IS_VERSIONING_ENABLED

#--> RESULT ecode:intValue versioning:boolValue

Parameters

none

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • versioning (boolValue) - is set to 1 if time based versioning is enabled, and 0 otherwise.

Details

See Also

Examples

asc
CC "Core" IS_VERSIONING_ENABLED
SET s:"You are NOT working with a library with time based versioning"
IF (versioning) {
   SET s:(replall(s, "NOT ", ""))
}
CC "AdoScript" INFOBOX (s)
CC "Core" IS_VERSIONING_ENABLED
SET s:"You are NOT working with a library with time based versioning"
IF (versioning) {
   SET s:(replall(s, "NOT ", ""))
}
CC "AdoScript" INFOBOX (s)

Versions and Changes

Available since ADOxx 1.3