Autor Beitrag
steppenwolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 31.01.04 21:02 
Hallo allerseits,

ich werde noch ganz kirre: Wie initialisiere ich Werte VOR dem Programmstart?

Bsp.: Ich möchte in einer Radiogroup von drei Radiobuttons den zweiten als aktiv markieren, ohne den Objektinspektor zu verwenden.

Danke im Voraus und auf bald ...
steppenwolf.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 31.01.04 21:27 
warum willst du den Objektinspektor nicht verwenden?
steppenwolf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 31.01.04 22:46 
Danke für die Antwort.

Das Problem ist, daß ich mehrere Variablen initialisieren muß. Ich habe (noch) keine Möglichkeit gefunden, die Initialisierungswerte per Debugger VOR dem eigentlichen Prozedureinstieg zu ermitteln.

Auf bald ...
steppenwolf.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 31.01.04 23:12 
wenn es globale Variablen sind, dann kannst du sie schon so im Quelltext vorbelegen:
ausblenden Delphi-Quelltext
1:
var i:Integer=10;					
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 31.01.04 23:13 
Was spricht gegen das OnCreate Ereignis der jeweiligen Form?
steppenwolf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 01.02.04 00:09 
Manchmal sieht man den Wald vor lauter Bäumen nicht ...

OnCreate = Bingo.

Danke nochmals und auf bald ...
steppenwolf.
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 01.02.04 00:10 
hm... das hatte ich jetzt garnicht erwähnt, weils beim Programmstart passiert und nicht davor ;)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 01.02.04 16:20 
Davor geht ja auch irgendwie nicht. Denn wie will ich was initialisieren, was es noch nicht gibt? :roll:
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: So 01.02.04 16:53 
doch, geht schon, wenn es schon im Kompilat vorhanden ist, ist es quasi schon davor initialisiert... :-/
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 01.02.04 16:57 
Hä? Im Kompilat? Wo soll das sein? OnCreate ist im Kompilat. Das Kompilat entsteht ja erst. Noch früher wäre nur in der Projekt-Datei.