|
DigiPara Liftdesigner LDX API
|
API method: ILDXApplication5.ProgramLCID64
' from Samples/Src/LDXAPIExamples/Example_LDXApplication.vb
<APIHelpAttribute(APIHelpModes.FireCalcModel, {APIHelpModes.InputParaLDXApp}, "", "LDXApplication~ProgramLCID64", "Show program language")>
Public Shared Sub ShowProgramLanguage(ByRef ldxApplication As DigiPara.LDX.LDXApplication)
' Create a database connection to the DigiPara Liftdesigner database
Dim oledbConnection As New System.Data.OleDb.OleDbConnection(ldxApplication.DatabaseConnectString)
' Open the connection
oledbConnection.Open()
' Create a SQL command
Dim Command As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand("SELECT L_InternetLCIDTab.* FROM L_InternetLCIDTab;",
DirectCast(oledbConnection, System.Data.OleDb.OleDbConnection))
' Execute the SQL command
Dim dr As System.Data.Common.DbDataReader = Command.ExecuteReader
' Loop through the result set
While dr.Read
If dr("LCID_VALUE").ToString() = ldxApplication.ProgramLCID64.ToString Then
MsgBox(dr("LCID_DESC").ToString())
Exit Sub
End If
End While
End Sub