Xbasic

SQL_ConnectionStringDialog Function

Syntax

Connection_String as C = SQL_ConnectionStringDialog([L CreateDataBaseButton [,C InitialConnectionString [,L AllowConnectionTypeChange ]]])

Arguments

CreateDataBaseButton

Logical. Optional. Default = .T. Indicates whether to display the create database button.

InitialConnectionString

Character

AllowConnectionTypeChange

Logical

Returns

Connection_StringCharacter

A connection string for the selected database.

Description

The SQL_ConnectionStringDialog() function displays the Create SQL Connection String dialog, which helps you define a connection string for a SQL database.

Example 

? SQL_ConnectionStringDialog(.t.)
= "{A5API='Access',A5Syntax='Access',FileName='C:\Databases\Northwind\northwind.mdb',UserName='Admin'}"

See Also