strCenter

C Scripting Language
Reference Manual
Version 4.4.0

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using the CSL executive
Language
Directives
System library
String library
   strAscii
   strBuildRecord
   strCenter
   strChange
   strChar
   strExport
   strFormatNumber
   strImport
   strIndexOf
   strIsInteger
   strIsNumber
   strLastIndexOf
   strLeftJustify
   strLength
   strLower
   strParseRecord
   strRemoveWords
   strRightJustify
   strSplitConnectString
   strSplitPath
   strSpread
   strStrip
   strStripExtension
   strStripLeading
   strStripTrailing
   strSubString
   strUpper
   strWordCount
   strWords
Math library
Regular expression lib.
File library
Database library
Async Communication
Registry/Profile handling
Windows control
C API
C++ Class Interface
CSL links
  
strCenter(
  const string,   // string to center
  const width,    // width of field
  [const padd])   // padding character (default = ' ')

Centers a string in a field of width.

Examples:

strCenter('hello', 11);        // '   hello   '
strCenter('hello', 11, '*');   // '***hello***'
  Copyright © IBK Landquart Last revision: 27.05.2002 << Back  Top  Next >>