How To Search for the Last Occurrence of a Substring (168836)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft PowerPoint 97 for Windows
- Microsoft Word 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel 97 for Windows
- Microsoft Access 97
- Microsoft Access for Windows 95 7.0
This article was previously published under Q168836 SUMMARY
The InStr() function provides a method to search for the first occurrence
of one string (substring) inside another string. However, there is no
intrinsic method to search for the last occurrence of a substring. This
article provides a sample function written in Basic.
REFERENCES
Microsoft Visual Basic online Help topic "InStr."
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB168836 kbAudDeveloper |
---|
|