You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
5.5 KiB
135 lines
5.5 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
|
|
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
|
|
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
|
|
<TITLE>DB_Connection -Konstructor </TITLE>
|
|
<xml>
|
|
<MSHelp:TOCTitle Title="DB_Connection -Konstructor "/>
|
|
<MSHelp:RLTitle Title="DB_Connection -Konstructor "/>
|
|
<MSHelp:Keyword Index="A" Term="topic_0000000000000CB9"/>
|
|
<MSHelp:Keyword Index="K" Term="DB_Connection -Konstructor "/>
|
|
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.DB.DB_Connection.New "/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.DB.DB_Connection.New"/>
|
|
<MSHelp:Keyword Index="F" Term="DB_Connection -Konstructor "/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.DB.DB_Connection.DB_Connection -Konstructor "/>
|
|
<MSHelp:Attr Name="DevLang" Value="VB"/>
|
|
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
|
|
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
|
|
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
|
|
<MSHelp:Attr Name="DocSet" Value="VSM"/>
|
|
<MSHelp:Attr Name="Product" Value="VB"/>
|
|
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
|
|
<MSHelp:Attr Name="Product" Value="VSA"/>
|
|
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
|
|
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
|
|
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
|
|
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
|
|
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
|
|
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
|
|
</xml>
|
|
<META name="rtfFileName" content="">
|
|
<META NAME="save" CONTENT="history">
|
|
<!--CSS_START-->
|
|
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
|
|
<!--CSS_END-->
|
|
<SCRIPT language="JavaScript">
|
|
function indent(level) {
|
|
for (i=1; i<=level; i++) {
|
|
document.write(" ");
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
|
|
<div id="nsbanner">
|
|
<div id="bannerrow1">
|
|
<TABLE CLASS="bannerparthead" CELLSPACING=0>
|
|
<TR ID="hdr">
|
|
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
|
|
<TD CLASS="product" nowrap> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</div>
|
|
<div id="TitleRow">
|
|
<H1 class="dtH1"><A NAME="topic_0000000000000CB9"></A>DB_Connection -Konstructor </H1>
|
|
</div></div>
|
|
<!--NONSCROLLING BANNER END-->
|
|
|
|
<DIV id="nstext" valign="bottom"><!---->
|
|
|
|
<P>Liest sämtlcihe CFG-Dateien mit dem Namen "Vertragsverwaltung...". Sind meherere Dateien vorhanden,
|
|
wird ein Auswahldialog zur Datenbank-Selektion angezeigt.
|
|
Standardmässig wird Vertragsverwaltung.cfg als CFG-Datei benutzt.
|
|
|
|
Die CFG-Datei ist verschlüsselt und wird über die Crypto-Funktionen entschlüsselt.</P>
|
|
|
|
|
|
|
|
|
|
<PRE class="syntax"><SPAN class="lang">[Visual Basic]
|
|
</SPAN><B>Private Shared Sub New()</B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Shared Sub New() <br> Dim fc As Integer = 0 <br> If Globals.ConnectionFileName.Length = 0 Then <br> Dim Dir As DirectoryInfo = New DirectoryInfo(Application.StartupPath) <br> Try <br> Dim f As New frmDatenbankauswahl() <br> Dim ChildFile As FileInfo <br> For Each ChildFile In Dir.GetFiles() <br> If UCase(Left(ChildFile.Name, 18)) = "VERTRAGSVERWALTUNG" And UCase(ChildFile.Extension) = ".CFG" Then <br> f.ListBox1.Items.Add(ChildFile.Name) <br> fc = fc + 1 <br> End If <br> Next <br> If fc > 1 Then <br> f.ListBox1.SelectedIndex = 0 <br> f.ListBox1.Select() <br> f.ShowDialog() <br> Globals.ConnectionFileName = f.ListBox1.SelectedItem <br> f.Dispose() <br> End If <br> Catch except As Exception <br> fc = 0 <br> Exit Sub <br> End Try <br> End If <br> If fc < 2 Then Globals.ConnectionFileName = "Vertragsverwaltung.cfg" <br> Dim ofile As System.IO.File <br> Dim oread As System.IO.StreamReader <br> oread = ofile.OpenText(Application.StartupPath + "\" + Globals.ConnectionFileName) <br> sConnectionString = oread.ReadLine <br> sConnectionString = Crypto.DecryptText(sConnectionString, "HutterundMueller") <br> sConnectionString = Left(sConnectionString, Len(sConnectionString) - 1) <br> Globals.sConnectionString = sConnectionString <br> Globals.conn.sConnectionString = sConnectionString <br> oread.Close() <br> End Sub
|
|
</pre>
|
|
|
|
|
|
|
|
<H4 class="dtH4">Forderungen</H4>
|
|
<P><b class="le">Plattformen: </b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
|
|
|
|
|
|
<H4 class="dtH4">Siehe auch</H4>
|
|
<p>
|
|
<a href="topic_0000000000000CB8.html">DB_Connection</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<DIV CLASS="footer">
|
|
<HR>
|
|
Generated by VBdocman .NET
|
|
<p>
|
|
</div></div>
|
|
</BODY>
|
|
</HTML>
|
|
|