Autor Beitrag
rob87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 03.09.07 09:57 
Gegeben:

Eine Tabelle tabelle1 mit dem Inhalt Z:\ordner1\testdatei1

und eine Zuweisung: string1 := tabelle1['spalte1']; ==> string1 hat den Inhalt von testdatei1


Nun lasse ich, wenn der Tabellenzugriff scheitert ein Netzlaufwerk auf den Ordner ordner1 erstellen.
Das lautet dann wie folgt: ordner1 auf X:


Nun möchte ich hier den Pfad genauso zuweisen, wie wenn ich auf die Tabelle zugreifen kann.

Ich krieg des aber ned hin.

Irgendiw mit string1 := ['X:\ordner1\testdatei1']; oder so ähnlich

In meiner Tabelle steht noch, dass eben diese eine Zelle ein Char-Typ ist. UNd das habe ich hier noch nicht verwirklicht.

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 04.09.07 19:06 
Kannst Du dich bitte noch mal etwas sammeln und dann noch einmal deutlich, wohlgeordnet und für jederman verständlich erklären, was Du tun möchtest?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 04.09.07 19:44 
Ein Tipp, vllcht hast du das gemeint:
Lass mal bei der letzten Codezeile die eckigen Klammern weg.

Wenn ich mit meiner Vermutung falsch liege, dann gilt:

user profile iconBenBE hat folgendes geschrieben:
Kannst Du dich bitte noch mal etwas sammeln und dann noch einmal deutlich, wohlgeordnet und für jederman verständlich erklären, was Du tun möchtest?


Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN