How To Provide Inverse AT() Functionality (192764)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for UNIX 2.6
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft FoxPro for MS-DOS 2.5b
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft FoxPro for Macintosh 2.6a
This article was previously published under Q192764 SUMMARY
The AT(), RAT() and equivalent functions can be used to return the
beginning numeric position of the first occurrence of a character
expression within another character expression. However, FoxPro does not
provide a function to find the first occurrence of a character that is not
the character that was passed as a parameter. In other words, suppose that
you have a string "AAAAB" and you wish to find the first occurrence of a
character that is not "A". This article demonstrates how to provide this
functionality.
REFERENCES
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbcode kbhowto KB192764 |
---|
|