Search these areas:
Help
Support Forums
Product Info



Introduction
DataWeb: What's New
Creating an Application
The DataWeb Designer
Application Management
Data Tables
Data Tables
Views
Templates
Components
Data Analysis
Members
Security
Importing
Exporting
FTP
JavaScript
Object Model
JavaScript Objects
-Array Object
-Date Object
-Error Object
-Math Object
-Number Object
-Object Object
-RegExp Object
-String Object
beginsWith
beginsWithIgnoreCase
charAt
charCodeAt
equal
equalIgnoreCase
fromCharCode
indexOf
lastIndexOf
replace
split
substring
toLowerCase
toString
toUpperCase
trim
valueOf
General Scripting Objects
Data Access Objects
File Access Objects
Http Client Objects
Security and Membership Objects
Document Object Model (DOM)
Error Descriptions
Object Model Extensions
Full-Text Search
Domain and Email Hosting
HotBlock Modules
Account Management
Glossary
New Responsive UI Module





DataWeb Help
Support Forums
Tutorial
Script Library
Knowledge Base

Home > Support

DataWeb User's Guide

String Object
A String object represents a text string in a DataWeb web. The String prototype object contains methods for convenient comparison and manipulation of primitive string values.

Constructor

[new] String([initValue]) Constructs and returns a new String object instance, initialized with the data and length of the initValue argument.

Instance Properties

length Returns the number of characters in the string object instance. Read only.

Instance Methods

charAt Returns the character at a specified position in a string
charCodeAt Returns the ASCII code of the character at a specified position in a string.
indexOf Returns the position of a specified part of a string.
lastIndexOf Returns the position of a specified part of a string.
replace Finds and replaces substrings within a string.
split Returns an Array object whose elements are substrings of a specified string.
substring Returns a substring of a specified string.
toLowerCase Converts the characters in a string to lower case.
toString Returns a string value containing the instance's string data.
toUpperCase Coverts the characters in a string to upper case.
trim Removes any leading and trailing white space characters from a string.
valueOf Returns a string value containing the instance's string data.

Prototype Methods

beginsWith Checks to see if a specified string begins with a specified substring.
beginsWithIgnoreCase Checks to see if a specified string begins with a specified substring. This check is case insensitive.
equal Checks to see if two strings are equal.
equalIgnoreCase Checks to see if two strings are equal. This check is case insensitive.
fromCharCode Returns a string value based on the ASCII characters entered as arguments.

Example
var str = new String("Welcome to the Help site.");
return str.length;
  //output: 25
Affiliate | Partner | Terms of Use | Privacy Policy | Contact Us | Pricing | Bring DataWeb In-House    
Email Us