User Tools

Site Tools


Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(String; String; Char; String; Char) method

DK11 for Delphi | GisDb.TGIS_DbAbstract.sqlPathAbsolute | Overloads | Constructors | Fields | Methods | Properties | Events

Resolves potentially embedded database path in a connection string into an absolute path.

Available also on: .NET | Java.


// Delphi
  function sqlPathAbsolute(
    const _folder : String;
    const _connection : String;
    const _separator : Char;
    const _key : String;
    const _delimiter : Char
  ) : String; overload;
// C++ Builder
  UnicodeString sqlPathAbsolute(
    const UnicodeString _folder,
    const UnicodeString _connection,
    Char* const _separator,
    const UnicodeString _key,
    Char* const _delimiter
  ) /* overload */;


Name Type Description
_folder String base folder for opening file based databases
_connection String connection string
_separator Char items separator
_key String key of the item which may contain path
_delimiter Char key-value delimiter


Type Description
String if connection contains file then expanded absolute path; _connection string otherwise


This overload assumes that _connection contains string in a format: 'key1=valu1;key2=value;KEY=value3' where ';' is a _separator, '=' is as _delimitter, and 'KEY' is a _key.

2021/09/28 01:13

Page Tools