JVCL Help:TJvLookupControl.LookupFormat

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

Search in JVCL Help

 
Search in all projects
 

Summary

Specifies the format to use to display the field values in the lookup list.


Pascal

 propertyLookupFormat: string;


Description

Use LookupFormat to display the lookup field values in a specific format in the lookup list. The format string must have the same number of format specifiers as the number of fields (specified by LookupDisplay). The only allowed format specifier is "%s".
For example, you have 3 fields in the lookup table: FIRSTNAME, LASTNAME and AGE. If these fields have the values 'John', 'Doe', 25 resp. then you want it to be displayed as 'Doe, John (25)'. In this case you have to set the properties as follows: ListStyle := lsDelimited;
LookupDisplay := 'LASTNAME;FIRSTNAME;AGE';
LookupFormat := '%s, %s (%s)';


See Also

TJvLookupControl.ListStyle


About

Notes

Property LookupFormat is ignored if ListStyle is set to lsFixed.


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