ConstantValueManager.<Constant name >

Properties:

<Common attribute name>
AdditionalProperties
DataExchange
ThisObject
Value

Methods:

CheckFilling
Metadata
Read
Write

Events:

BeforeWrite
FillCheckProcessing
OnWrite

Description:

This may be used to access the constant. Executes the obtainment (reading) of a constant and its setting (record). Unlike ConstantManager., reading and setting is executed in/from the inner property Value. Any constant recording (interactively in the form, objects ConstantsSet and ConstantManager.) explicitly or implicitly creates an object of this type and executes recording of it; thus, this object's event handler calling is provided.

Availability:

Server, thick client, external connection, Mobile application (server).
The given object may be serialized to/from XML. The given object may be serialized to/from XDTO. The XDTO type correspoding to this object is defined in {http://v8.1c.ru/8.1/data/enterprise/current-config} namespace. XDTO type name: ConstantValueManager..

Example:

// read and write a constant
TaxRate = Constants.TaxRate.CreateValueManager();
TaxRate.Read();
If 
TaxRate.Value = 20 Then
    TaxRate.Value = 18;
    TaxRate.Write();
EndIf
;

See also:

ConstantManager, method CreateValueManager
ConstantValueManager, property ThisObject

    

1C:Enterprise Developer's Community