JVCL Help:JvCsvWildcardMatch

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

Search in JVCL Help

 
Search in all projects
 

Summary

Internal wildcard matching function used by SetFilter

run\JvCsvData.pas


Pascal

 run\JvCsvData.pas
 functionJvCsvWildcardMatch(Data: string; Pattern: string): Boolean;


Parameters

Parameters Description
Data: string A literal string value to be checked, for example 'Bob Smith'
Pattern: string A pattern to be matched, can have special wildcard characters, for example 'Bob%'

run\JvCsvData.pas


Description

See SetFilter.
patterns can contain wildcards, such as '%' for AnyString, or '?' for matching any SingleCharacter. These wildcards were chosen because they are similar to the wildcards used in SQL Databases.
A very specialized feature is the ability to check for several different values, by combining the values with a vertical-pipe (|) symbol. To match a string that starts with either A or B or C, use the pattern 'A%|B%|C%

run\JvCsvData.pas


See Also

TJvCustomCsvDataSet.SetFilter

run\JvCsvData.pas


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