[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'LazConfigStorage' (#lazutils)

TConfigStorage.SetValue

Stores a value at the specified path in the configuration storage.

Declaration

Source position: lazconfigstorage.pas line 63

public procedure TConfigStorage.SetValue(

  const APath: string;

  const AValue: string

);

procedure TConfigStorage.SetValue(

  const APath: string;

  AValue: Integer

);

procedure TConfigStorage.SetValue(

  const APath: string;

  AValue: Boolean

);

procedure TConfigStorage.SetValue(

  const APath: string;

  const AValue: TRect

);

procedure TConfigStorage.SetValue(

  const APath: string;

  const AValue: TPoint

);

procedure TConfigStorage.SetValue(

  const APath: string;

  const AValue: TStrings

);

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Arguments

APath

  

Node path (relative to CurrentBasePath) where the specified value is stored.

AValue

  

Value stored for the specified node path.

Description

SetValue is an overloaded method in TConfigStorage used to store the value specified in the AValue argument to the node path in APath. The overloaded variants allow AValue to be specified using String, Integer, Boolean, TRect, or TPoint types.

APath contains the node path where the value is stored in the storage mechanism. SetValue calls the ExtendPath method to include the value in CurrentBasePath prior to the specified node path.

The SetFullPathValue method is called to store AValue to the underlying storage mechanism. Overloads for TRect and TPoint are decomposed and stored as the members values for the types. For TRect: Left, Top, Right, and Bottom are stored. For TPoint: X and Y are stored.

Use GetValue to read a stored value for a specified node path.


Version 4.0 Generated 2025-05-03 Home