<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname]]></title><description><![CDATA[<p>Hallo:</p>
<p>ich habe in dem Ordner wo mein Programm ist einen ordner Data, wo eine tabelle (paradox7) drin ist: alias2.db!</p>
<p>Im form create möchte ich da schon was auslesen:</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormCreate(TObject *Sender)
{
AnsiString asDatadir = ExtractFilePath(Application-&gt;ExeName) +&quot;\\Data&quot;;
Query1-&gt;DatabaseName = asDatadir;
Query1-&gt;Close();
Query1-&gt;SQL-&gt;Clear();
Query1-&gt;SQL-&gt;Add(&quot;select * from alias2.db&quot;);
Query1-&gt;Open();
</code></pre>
<p>Fehler ist Ungültiger Dateiname, was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/97636/zugriff-auf-tabelle-gt-ungültiger-dateiname</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 22:00:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/97636.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jan 2005 14:00:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:00:33 GMT]]></title><description><![CDATA[<p>Hallo:</p>
<p>ich habe in dem Ordner wo mein Programm ist einen ordner Data, wo eine tabelle (paradox7) drin ist: alias2.db!</p>
<p>Im form create möchte ich da schon was auslesen:</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormCreate(TObject *Sender)
{
AnsiString asDatadir = ExtractFilePath(Application-&gt;ExeName) +&quot;\\Data&quot;;
Query1-&gt;DatabaseName = asDatadir;
Query1-&gt;Close();
Query1-&gt;SQL-&gt;Clear();
Query1-&gt;SQL-&gt;Add(&quot;select * from alias2.db&quot;);
Query1-&gt;Open();
</code></pre>
<p>Fehler ist Ungültiger Dateiname, was mache ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694246</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:00:33 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:02:34 GMT]]></title><description><![CDATA[<p>ich kenne mich da zwar nicht so aus, aber verschiebe das ganze mal in FormShow und gib mal bescheid ob der gleiche fehler auftrettet..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694250</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:02:34 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:04:16 GMT]]></title><description><![CDATA[<p>ja gleicher fehler auch bei SHow!!<br />
oder mach ich grundsätzlich was falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694255</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:04:16 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:25:08 GMT]]></title><description><![CDATA[<p>könnte es vielleicht daran liegen, dass du DatabaseName einen Pfad und keine Datenbank zuweißt? ich kenn mich mit Paradox nicht aus, aber bei Access z.B. muss da der Datenbankname rein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694287</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:27:21 GMT]]></title><description><![CDATA[<p>Nein, das sollte eigentlich so funktionieren. Versuch mal, ob es funktioniert, wenn Du noch ein &quot;\&quot; anhängst.<br />
Also &quot;\\Data\&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694292</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:27:21 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:34:27 GMT]]></title><description><![CDATA[<p>Hmmm...immernoch Fehler!</p>
<p>Brauch ich vielleicht nochwas ausser Query?</p>
<p>Oder gibt es da noch eine andere möglichkeit, zb mit Access?</p>
<p>nochmal der Code jetzt</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormShow(TObject *Sender)
{
AnsiString asDatadir = ExtractFilePath(Application-&gt;ExeName) + &quot;\\Data\\&quot;;
TQuery *Query1 = new TQuery(Application);
Query1-&gt;DatabaseName = asDatadir;
Query1-&gt;Close();
Query1-&gt;SQL-&gt;Clear();
Query1-&gt;SQL-&gt;Add(&quot;select * from alias2.db&quot;);
Query1-&gt;ExecSQL();
delete Query1;
</code></pre>
<p>wieder Ungültiger Dateiname</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694301</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:34:27 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:42:16 GMT]]></title><description><![CDATA[<p>Normalerweise benötigst Du noch ein TDataSource zu einem TQuery.</p>
<p>Was passiert, wenn Du den Tabellennamen in Anführungszeichen setzt?<br />
Der 'Datenbankname' sollte als erstes gesetzt werden.<br />
In welcher Zeile tritt der Fehler auf?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694309</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:49:54 GMT]]></title><description><![CDATA[<p>Fehler tritt nach Query1-&gt;ExecSQL auf!</p>
<p>Hab TDataSource noch gemacht, bringt nix!</p>
<p>Joe_M. schrieb:</p>
<blockquote>
<p>Der 'Datenbankname' sollte als erstes gesetzt werden.</p>
</blockquote>
<p>kannst mir das kurz erklären? steh auf schlauch!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694319</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 14:58:56 GMT]]></title><description><![CDATA[<p>schliesst du die datenbank mit</p>
<blockquote>
<p>Query1-&gt;Close();</p>
</blockquote>
<p>nicht wieder?</p>
<p>[edit] kenne mich wie gesagt nicht so gut aus, sieht aber auf den ersten blick so aus[/Edit]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694332</guid><dc:creator><![CDATA[BigNeal]]></dc:creator><pubDate>Wed, 12 Jan 2005 14:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Wed, 12 Jan 2005 15:31:49 GMT]]></title><description><![CDATA[<p>Zum einen muss es heißen: -&gt;Open() anstatt -&gt;ExecSQL (dieses ist nur für Anweisungen ohne Ergebnismenge) und zum anderen, hätte ein kurzer Blick auf die Pfadvariable im Debugger gereicht, um festzustellen, dass + &quot;\\Data\&quot; zu einem falschen Pfad führt: &quot;Programmpfad\\\Data\&quot; nämlich. Ändere &quot;\\Data\&quot; in &quot;Data\&quot; und freu Dich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/694382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/694382</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 12 Jan 2005 15:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Thu, 13 Jan 2005 13:14:30 GMT]]></title><description><![CDATA[<p>Ja funktioniert, danke!</p>
<p>Funktioniert das auch ähnlich mit Access Datenbanken?<br />
Weil da hab ich noch nix gefunden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/695096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695096</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Thu, 13 Jan 2005 13:14:30 GMT</pubDate></item><item><title><![CDATA[Reply to Zugriff auf Tabelle -&amp;gt; Ungültiger Dateiname on Thu, 13 Jan 2005 13:41:48 GMT]]></title><description><![CDATA[<p>Eine frage hab ich noch, wie müsste das Beispiel aussehen, wenn ich ADO-Komponente verwende??</p>
<p>Hab noch nie damit gearbeitet!</p>
<pre><code class="language-cpp">void __fastcall TForm1::FormShow(TObject *Sender)
{
AnsiString asDatadir = ExtractFilePath(Application-&gt;ExeName) + &quot;Data\\&quot;;
TQuery *Query1 = new TQuery(Application);
Query1-&gt;DatabaseName = asDatadir;
Query1-&gt;Close();
Query1-&gt;SQL-&gt;Clear();
Query1-&gt;SQL-&gt;Add(&quot;select * from alias2.db&quot;);
Query1-&gt;Open();
delete Query1;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/695119</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/695119</guid><dc:creator><![CDATA[VitaCola]]></dc:creator><pubDate>Thu, 13 Jan 2005 13:41:48 GMT</pubDate></item></channel></rss>