WMLScript The elements() Function
Complete WMLScript String Library
The elements() function returns the number of times a specified value appears in a string.
Syntax
n = String.elements(string, separator) |
Part |
Description |
n |
An integer that specifies the number of times the value
specified in the separator parameter appears in the string
parameter |
string |
The string to be searched |
separator |
The string value to search for in the string |
Example
var a = String.elements("Visit W3Schools!","i");
var b = String.elements("Visit W3Schools!","V");
var c = String.elements("Visit W3Schools!"," ");
|
Result
Complete WMLScript String Library
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|