Autor Beitrag
|\/|_/\_><
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: So 09.10.05 20:08 
Hallo,
gibt es eine Möglichkeit eine Tabelle mit Strings zu erstellen, die so schon vor dem Kompilieren feststeht? Die ich also vorher füllen kann und mir dann zur Laufzeit zur Verfügung steht?

Danke - Gruß Max
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: So 09.10.05 21:50 
Meinst Du sowas in der Art

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
const
    TextData: Array[0..2] of array[0..3] of String =
        (
            ('0,0','0,1','0,2','0,3'),
            ('1,0','1,1','1,2','1,3'),
            ('2,0','2,1','2,2','2,3')
        );

_________________
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.
|\/|_/\_>< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: So 09.10.05 22:03 
hm - naja - ka - gibt's da vielleicht auch ne elegantere Lösung?

Mir würde sonst nur ne Datenbank einfallen, aber ich nehme mal an, dass das ziemlich kompliziert werden dürfte, oder?
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: So 09.10.05 22:22 
Kommt drauf an, wie deine Daten aussehen? Der obige Source ist unter der Annahme entstanden, dass Du nur Strings hast, die eine Tabelle bilden.

Weitere Möglichkeiten wären noch CSV (Text-Format) und Eintragen der Daten direkt in eine Stringgrid zur Entwurfszeit. Alles hat dabei seine Vor- und Nachteile...

_________________
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.