strSubString

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
Language
Directives
System Library
String Library
   strAscii
   strBuildRecord
   strCenter
   strChange
   strChar
   strExport
   strFormatNumber
   strImport
   strIndexOf
   strIsInteger
   strIsNumber
   strLeftJustify
   strLength
   strLower
   strParseRecord
   strRemoveWords
   strRightJustify
   strSplitConnectString
   strSplitPath
   strSpread
   strStrip
   strStripExtension
   strStripLeading
   strStripTrailing
   strSubString
   strUpper
   strWordCount
   strWords
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  
strSubString(
  const string,     // source string
  const start,      // starting position, index based 1
  [const count,     // # of characters
   const padchar])  // padding character

Extracts a substring from a string. If count is ommitted, all remaining characters are taken.

Examples:

const s = 'hello world';
strSubString(s,2,2);         // el
strSubString(s,4);           // lo world
strSubString(s,1,20,'*');    // hello world*********
strSubString('',1,20,'-');   // --------------------
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>