strSplitConnectString

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
  
strSplitConnectString(
  const connstr,      // connect-string
  [var& password,     // extension
   var& connection,   // directory
   var& database])    // drive

Splits a connect string into its 4 parts database, userid,password and connection. The connect-string has the following syntax:

  [database:][userid][/password][@connection]

Any of the 4 parts may be missing. The database-part is converted to uppercase; the other parts are left in original case.

Returns the userid.

Example:

var db, name, pass, conn;
name = strSplitConnectString(
         'db2:Sandra/Bullock@Hollywood',
         pass, conn, db);
       // db   = 'DB2'
       // name = 'Sandra'
       // pass = 'Bullock'
       // conn = 'Hollywood'
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>