Proceed to WirelessDevNet Home Page
Publications, e-books, and more! Community Tutorials Store Downloads, tools, & Freebies! IT Career Center News Home
newnav.gif

Newsletters
EMail Address:



   Content
  - Articles
  - Columns
  - Training
  - Library
  - Glossary
 
   Career Center
  - Career Center Home
  - View Jobs
  - Post A Job
  - Resumes/CVs
  - Resource Center
 
   Marketplace
  - Marketplace Home
  - Software Products
  - Wireless Market Data
  - Technical Books
 
   News
  - Daily News
  - Submit News
  - Events Calendar
  - Unsubscribe
  - Delivery Options
 
   Community
  - Discussion Boards
  - Mailing List
  - Mailing List Archives
 
   About Us
  - About WirelessDevNet
  - Wireless Source Disks
  - Partners
  - About MindSites Group
  - Advertising Information
 
WMLScript Reference WMLScript Reference

WMLScript > String > find()

find() - The find Function

Usage:  
find(string, subString)
Description:  Returns the index of the first character in the string that matches the requested subString. If no match is found integer value -1 is returned.

Two strings are defined to match when they are indentical. Characters with multiple possible representations match only if they have the same representation in both strings. No case folding is performed.


Example:
var a = "abcde";
var b = String.find(a, "cd");        // b = 2
var c = String.find(34.2, "de");     // c = -1
var d = String.find(a, "qz");        // d = -1
var e = String.find(34, "3");        // e = 0
var f = String.find(a, "");          // f = invalid




Bookmark this page
Sponsors

Search

Eliminate irrelevant hits with our industry-specific search engine!









Wireless Developer Network - A MindSites Group Trade Community
Copyright© 2000-2010 MindSites Group / Privacy Policy
Send Comments to:
feedback@wirelessdevnet.com