JVCL Help:TJvDBHTLabel.Mask

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Defines field values used in the caption for the data-aware control.


Pascal

 propertyMask: string;


Description

Mask is a String property that defines the field values in the DataSource dataset used in the caption for the data-aware control. Values defined in the Mask property are used when the data is changed for the underlying dataset or when the Mask property is changed and UpdateCaption is called.
Mask uses pseudo-HTML tagging to define the field values to merge into the Caption for the data-aware control. For instance, the following code uses the CustomerNo and CustomerName fields from the Datasource dataset:
ADBHTLabel.Mask :=

   'Customer number <FIELD="CustomerNo"> is
   <FIELD="CustomerName">.'; 

The following is the value for the Caption property for the control (sans rendered HTML bold and underline attributes):
Customer number 1234 is Harley's Motorcycle Emporium.
Use DataSource to specify the dataset containing field values for use in the data-aware control.


See Also

TJvDBHTLabel.DataSource, TJvDBHTLabel.UpdateCaption


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page