Asp > Code Snippets
Find a word in a stringusing InStr
Find a word in a stringusing InStr <% Dim strText 'here is our string strText = "This is our sample text to be searched" 'we will look for the word sample strSearch = InStr(strText , "sample") 'display the results Response.Write strSearch %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML