
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) Tools Help GTL - Norton Guide
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GT_CHRFIRST()
Find which character occurs first in a string
---------------------------------------------------------------------------------
Syntax
GT_ChrFirst(<cChars>, <cStr>) --> nAsc
Arguments
<cChars> - The set of characters to find <cStr> - The input
string
Returns
<nAsc> - The ASCII value of the first character in
<cChars> which appears first in <cStr>
Description
Return the ascii value of a character in <cChars> which appears
first in <cStr>.
Examples
? chr(GT_ChrFirst("sa ", "This is a test")) // prints "s"
? chr(GT_ChrFirst("et", "This is a test")) // prints "t"
Status
Ready
Files
Library is libgt
Library is libgt
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson