Autor Beitrag
Mindforce
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: Di 17.10.06 10:43 
Hi,

ich bin grad an einem Programm, wo ich nun stehen geblieben bin.

Ich benutze den TValueListEditor. Und von dort möchte ich einen Wert auslesen.

Z.B.
| Schlüssel | Wert |
--------------------
| Caption.. | hallo|
--------------------
| PositionX | 300..|

Und so greife ich drauf zu!
ausblenden Delphi-Quelltext
1:
button5.Caption:= vle1.Values['hallo'];					


Und wenn ich aus dieser Tabelle den Wert "hallo" auslesen will, dann tut er es ja auch. Dann ist die Caption gleich "hallo".
Und wenn ich den Wert veränder von "hallo" zu ... "tschüss" dann macht er das auch. Die caption ist "tschüss".
Sehr merkwürdig?! :?

Kann man das nicht so regeln, das man den Schlüssel in der Zeile sucht, und DANN den Wert auslesen kann, der neben dem Schlüssel steht?

Freue mich auf antworten!!! :roll:

Gruß,

M!ndforce

_________________
Our force; in mind.
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Di 17.10.06 11:45 
Du musst bei Values den Schlüssel angeben, nicht den Wert. ;)
ausblenden Delphi-Quelltext
1:
button5.Caption:= vle1.Values['Caption..'];					


Wenn du bei 'hallo' ein Ergebnis bekommst, musst du 'hallo' irgendwo als Schlüssel haben. :gruebel: Schlüssel sollten nicht doppelt vorkommen.

MfG
freak

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Mindforce Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 358

Win XP Pro / MCE, Win 98, Slax (Linux)
Delphi 07 PRO, Delphi 3+7 (mit Prdx)
BeitragVerfasst: Di 17.10.06 11:52 
Hi,

ok. Thx.
Ich hab da nicht ganz aufgepasst. Thx nochmal! :oops:

Gruß,

M!ndforce
Einloggen, um Attachments anzusehen!
_________________
Our force; in mind.