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.
^
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 Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szString | BDS4 | char | REQ | INPUT |
A decription of an item, remark, or explanation. | ||||
cCharToFind | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
mnStartingPosition | MATH80 | MATH_NUMERIC | OPT | INPUT |
Enter a valid value. | ||||
mnPositionFound | MATH80 | MATH_NUMERIC | OPT | OUTPUT |
Enter a valid value. |
None |
None |