ArcFM Desktop Developer Guide
PromptConnection Method (IMMPxLoginEx)


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Database type as String; there are only three valid values:

You may pass in null values for this parameter, and the method will return the values entered by the user on the login form.

Server name as String
Database name as String (used only for SQL Server connections)
User name as String
Password as String
This method prompts the user with the Process Framework login dialog and returns a boolean if a connection is successfully established. There are several in/out parameters that are all string types: Provider, Server, Database Name, User and Password.
Syntax
'Declaration
 
Function PromptConnection( _
   ByRef sProvider As String, _
   ByRef sServer As String, _
   ByRef sDBName As String, _
   ByRef sUser As String, _
   ByRef sPassword As String _
) As Boolean
'Usage
 
Dim instance As IMMPxLoginEx
Dim sProvider As String
Dim sServer As String
Dim sDBName As String
Dim sUser As String
Dim sPassword As String
Dim value As Boolean
 
value = instance.PromptConnection(sProvider, sServer, sDBName, sUser, sPassword)
bool PromptConnection( 
   out string sProvider,
   out string sServer,
   out string sDBName,
   out string sUser,
   out string sPassword
)

Parameters

sProvider

Database type as String; there are only three valid values:

  • Access = Microsoft.Jet.OLEDB.4.0 (Access)
  • Oracle = OraOLEDB.Oracle (Oracle)
  • SQLOLEDB (SQLServer)

You may pass in null values for this parameter, and the method will return the values entered by the user on the login form.

sServer
Server name as String
sDBName
Database name as String (used only for SQL Server connections)
sUser
User name as String
sPassword
Password as String
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMPxLoginEx Interface
IMMPxLoginEx Members

 

 


Send Comment