FindCharPositionInString

Find a Char position in a String - China - 42

Minor Business Rule

Object Name: B7500150

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

This BF finds a character in a string and returns the position where the character was found.
The search is from left to rigth.


Input Parameters:

String            String[400] to search into;     Requiered
Char              Character to find;              Requiered

StartingPosition   MATH80, Position number inside

                  of the String to star searching.

                  Default value is 0.


Return Parameters:

PositionFound     MATH80, Position number inside of 
                  string where the character was fund.

                  If the character is not fund, -1 will 

                  be returned.


^

Data Structure

D7500150 - Find char position in a string                        - 42

This BF finds a character in a string and returns the position where the character was found.
The search is from left to rigth.


Input Parameters:

String            String[400] to search into;     Requiered
Char              Character to find;              Requiered

StartingPosition   MATH80, Position number inside

                  of the String to star searching.

                  Default value is 0.


Return Parameters:

PositionFound     MATH80, Position number inside of 
                  string where the character was fund.

                  If the character is not fund, -1 will 

                  be returned.

^

Parameter NameData ItemData TypeReq/OptI/O/Both
szStringBDS4charREQINPUT

A decription of an item, remark, or explanation.

cCharToFindEV01charREQINPUT

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

mnStartingPositionMATH80MATH_NUMERICOPTINPUT

Enter a valid value.

mnPositionFoundMATH80MATH_NUMERICOPTOUTPUT

Enter a valid value.

Related Functions

None

Related Tables

None