User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_dbabstract.sqlpathabsolute_string_string_char_string_char

Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(string, string, Char, string, Char) method

DK11 for .NET | TatukGIS.NDK.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: Delphi | Java.

Syntax

// C#
public string sqlPathAbsolute(
  string _folder,
  string _connection,
  Char _separator,
  string _key,
  Char _delimiter
);
' VisualBasic
Public Function sqlPathAbsolute(
  ByVal _folder As String,
  ByVal _connection As String,
  ByVal _separator As Char,
  ByVal _key As String,
  ByVal _delimiter As Char
) As String
// Oxygene
public
  function sqlPathAbsolute(
    _folder : String;
    _connection : String;
    _separator : Char;
    _key : String;
    _delimiter : Char
  ) : String;

Parameters

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

Result

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

Remarks

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:34

Page Tools