SearchStringForSpecificCharacter

Search String For Specific Character

Minor Business Rule

Object Name: B3200970

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1 Purpose
Search string for a specific character. Return existent status of the character in the string.



1.2Setup Notes and Prerequisites


1.3Special Logic


If the search is failed and the passed character is an asterisk "*"

   Search the string again for a percent "%" character.

   (QBE converts this character when it call BSFN)


2.Technical Specifications

2.4Processing 


If values passed in are not correct, return Error Message ID (DTAI) as '0002'.


Search the string for the passed character.


If the search is failed and the passed character is an asterisk "*"

   Search the string for a percent "%" character.

   (QBE converts this character when it call BSFN)


If the character is FOUND

   Set Character Exists flag to "1"

Else

   Set Character Exists flag to "0".



Data Structure

D3200970 - Search a String for a Character

Parameter NameData ItemData TypeReq/OptI/O/Both
szInputStringVC30AcharNONENONE

This is a generic field used as a work field in Everest.

cSearchCharacterEV01charNONENONE

An option that specifies the type of processing for an event.

cCharacterExistsEV01charNONENONE

An option that specifies the type of processing for an event.

cSuppressErrorMessageEV01charNONENONE

An option that specifies the type of processing for an event.

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

None