W3Schools

home HOME

WMLScript Tutorial
WMLScript HOME
WMLScript Intro
WMLScript How to

WML Libraries
WML Dialogs
WML Float
WML Lang
WML String
WML URL
WML Browser

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Forum

Helping W3Schools

WMLScript String Library

previous next

The String library contains functions for manipulating text.


WMLScript String Library Functions

Function Description
charAt() Returns the character at a specified position
compare() Compares two strings and returns a value that represents the result of the comparison
elementAt() Divides a string into elements and returns a specified element
elements() Returns the number of times a specified value appears in a string
find() Returns the position of a substring in a string
format() Formats a value
insertAt() Divides a string into elements and inserts a substring at a specified index position
isEmpty() Checks whether a string is empty
length() Returns the length of a string
removeAt() Divides a string into elements and removes a specified element
replace() Replaces a part of a string with a new string
replaceAt() Divides a string into elements and replaces a specified element
squeeze() Reduces all multiple spaces to single spaces in a string
subString() Returns a specified part of a string
toString() Converts a value to a string
trim() Returns a string without leading and trailing spaces


previous next


Learn XML with Stylus Studio XML Editor – Free Download

Stylus Studio provides tools for editing and debugging XML, XSLT, XML Schema, DTD, XQuery, Web Services,and more!

Using Stylus Studio XML Tools You Can:

See why millions use Stylus Studio as their preferred XML tool. Download a FREE TRIAL or watch an online VIDEO DEMO today!




Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2008 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999