Collapse All Expand All Language Filter: Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: J# Code: JScript

EDKB12WS Reference
ModMain.Get_Applikationnr Method
See Also

Assembly: EDKB12WS (in EDKB12WS.exe)

# Syntax

Visual Basic
Public Shared Function Get_Applikationnr( _ ByVal Dateinr As Integer _ ) As Integer
C#
public static int Get_Applikationnr( int Dateinr )
C++
public: static int Get_Applikationnr( int Dateinr )
JScript
public static function Get_Applikationnr( Dateinr : int ) : int;
## Parameters Dateinr

# Source code

Visual Basic | Copy Code
Public Function Get_Applikationnr(ByVal Dateinr As Integer) As Integer Try Dim connection As New SqlConnection() Dim da As New SqlDataAdapter("Select * From Office2010_Vorlage_datei where Office_Vorlage_Dateinr=" + Dateinr.ToString, connection) Dim CB As SqlCommandBuilder = New SqlCommandBuilder(da) Dim ds As New DataSet() Try connection.ConnectionString = Param.connectionstring connection.Open() da.Fill(ds, "docs") If ds.Tables(0).Rows.Count > 0 Then Return ds.Tables(0).Rows(0).Item(3) Else Return 0 End If Catch ex As Exception MsgBox(ex.Message) End Try CB = Nothing ds = Nothing da = Nothing connection.Close() connection = Nothing CB = Nothing ds = Nothing da = Nothing connection.Close() connection = Nothing Catch ex As Exception Return 0 End Try End Function

# Platforms

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2 The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

# Version Information

## .NET Framework Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0 ## .NET Compact Framework Supported in: 3.5, 2.0, 1.0 ## XNA Framework Supported in: 3.0, 2.0, 1.0

# See Also

## Reference ModMain Class ModMain ModMain Members