WildCardFilterCompare

WildCard Filter Compare

Minor Business Rule

Object Name: B0000166

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This function compares two partial strings to see if they match.



Technical Specification


Processing
This business function can be used with B0000165 "WildCard Number of Elements Count", which accepts a 

wildcard search description as input and counts the number of characters and spaces until a null 

character or an asterisk is encountered at the end of the input string.  The number of non-asterisk 

elements are returned in the integer data item "nPartialFilterElements".  


The number of filter elements can then be passed into this business function B0000166 "WildCard 

Filter Compare", which will compare the wildcard search description to a passed-in data item (to the length 

specified in Partial Filter Elements).  If a partial field match is found, a flag of "Y" is returned 

through the data structure.


^

Data Structure

D0000166 - WildCard Filter Compare

Parameter NameData ItemData TypeReq/OptI/O/Both
szSearchDescriptionDCcharNONENONE

Input for the partial search description entered by the user followed by an optional asterisk.
^

szComparisonDataItemALPHcharNONENONE

Input for the table field name to search (from business view) for comparison to the user's partial 
search description.

^

nPartialFilterElementsINT01integerNONENONE

Input for the number of non-asterisk elements in the partial search description entered by the user 
(found in B0000165) used for comparison of the fields to that string length.

^

cPartialFieldMatchFlagEV01charNONENONE

Returns a value of 'Y' if a partial field match is found.
^

Related Functions

None

Related Tables

None