Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Do 01.06.06 14:57 
Hallo,

habe leider nix mit der Suche gefunden. Ich möchte alle verfügbaren Alias der BDE auslesen, so dass ich per ComboBox die DB ändern kann. Wie lese ich die Alias aus?


Moderiert von user profile iconraziel: Topic aus VisualCLX (Component Library for Cross Platform) verschoben am Fr 02.06.2006 um 10:14

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Do 01.06.06 20:56 
Moin :-)
Stichwort(e) für die Delphi-OH ->GetAliasNames Auslesen aller BDE-Aliase
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.06.06 07:47 
Super, aber wie weise ich nun den Alias den ich im ComboBox habe einer Query zu?

ausblenden Delphi-Quelltext
1:
query.Database := ComboBox.....					


nimmt er alles nicht, weil query.database kein Wert zugewiesen werden kann.

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Fr 02.06.06 09:50 
Moin :-)
user profile iconmexx hat folgendes geschrieben:
Super, aber wie weise ich nun den Alias den ich im ComboBox habe einer Query zu?

ausblenden Delphi-Quelltext
1:
query.Database := ComboBox.....					


nimmt er alles nicht, weil query.database kein Wert zugewiesen werden kann.
:gruebel:
Also so weit ich weiß, gibt es bei Query die Eigenschaft DatabaseName, und diese kann ich selbstredend auf zur Laufzeit zuweisen
ausblenden Delphi-Quelltext
1:
2:
3:
Query1.Close;
Query1.DatabaseName := ComboBox..... 
...
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.06.06 13:40 
Als Fehlermeldung erhalte ich die Aussage, dass einer Nur-Lesen-Eigenschaft kein Wert zugewiesen werden kann.

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Sa 03.06.06 11:38 
user profile iconmexx hat folgendes geschrieben:
Als Fehlermeldung erhalte ich die Aussage, dass einer Nur-Lesen-Eigenschaft kein Wert zugewiesen werden kann.
:gruebel:
Das verstehe ich in sofern nicht, als dass bei einer TQuery-Kompo die Eigenschaft DatabaseName sehr wohl zur Laufzeit geändert werden kann.
Stell sich sich jetzt die Frage, was für eine Querys-Kompo Du benutzt.
Vllt. hilft auch ein Stückchen Code bzw einige weitere Einzelheiten...
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 06.06.06 15:26 
Keine Chance, selbe Meldung. Probiers aus!

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 06.06.06 15:30 
Sorry, funktioniert doch, war blind... :autsch:

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.