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

TMaskList.Create

Creates a new list with mask instances for the specified mask values, delimiter and options.

Declaration

Source position: masks.pas line 322

public constructor TMaskList.Create(

  const aValue: string;

  aSeparator: Char = ';';

  CaseSensitive: Boolean = False;

  aOpcodesAllowed: TMaskOpCodes = DefaultMaskOpCodes

); virtual;

constructor TMaskList.Create(

  const aValue: string;

  aSeparator: Char;

  aOptions: TMaskOptions

); virtual;

Arguments

aValue

  

Mask value(s) stored in the internal object list.

aSeparator

  

Delimiter used to delimit mask values in AValue.

CaseSensitive

  

Indicates if case sensitivity is used for masks.

aOpcodesAllowed

  

Indicates if case sensitivity is used for masks.

Arguments

aValue

  

Mask value(s) stored in the internal object list.

aSeparator

  

Delimiter used to delimit mask values in AValue.

aOptions

  

Contains the options enabled for the mask instances.

Description

Create is the overloaded constructor for the class instance. Create allocates resources for the internal object list in the class instance. Arguments passed to the constructor are used to configure and populate the values in the Items property by calling the AddMasksToList method. Values in the arguments are also assigned to the CaseSensitive and MaskOpCodes properties.

Remark: The overloaded variant which does not include an Options parameter has been deprecated. It will be removed in a future Lazarus version.

See also

TMaskList.Items

  

The mask items in the list.

TMaskList.CaseSensitive

  

Indicates whether the Mask expressions in the list are case sensitive.

TMaskList.MaskOpCodes

  

Contains the op codes allowed for the mask instances in the list.

TMaskList.AddMasksToList

  

Adds new mask instances to the list for the specified delimited mask expressions and settings.


Version 4.0 Generated 2025-05-03 Home