connectionString Property

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Object Reference > DBWPar Properties >

connectionString Property

MechWorks MWScriptGUI Scripting Utility Object

Returns the connection string used by DBWorks to point to its main database

Syntax

[form!]DBWPar.connectionString[ = value As String ]

Data Type

String

Example

'retrieve the best connection string
set mwo = CreateObject("MWScriptGUI.DBWPar")
cnnstr = mwo.connectionString
set mwo = nothing
'Use the string to connect
set cnn = CreateObject("ADODB.Connection")
cnn.open cnnstr
...
set cnn = nothing