Autor Beitrag
Niko S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: So 16.07.06 18:44 
Kann man durch irgendeinen befehl nach einer if-clause wieder zum anfang zurück springen?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 16.07.06 18:48 
Bei einem If nicht. Nehme in diesem Fall lieber eine While oder Repeat Schleife.

_________________
Markus Kinzler.
Niko S. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: So 16.07.06 19:07 
hm

Also das problem ist:
Ich lese eine file die ca 2600 lines besitzt
da sind ganz viele sachen die ich zerlege ^^
i-wann danach kommt aber eine zeile die entweder leer ist
oder ein // davor hat
nun muss er diese lines überspringen ohne einfach dazwischen was zu vergessen ..
also eine for schleife
wo immer das gleiche passiert ..
aber sobald da halt eine zeile ist soll er die überspringen .. aber wen da noch eine ist überspringt er die ja nicht sondern geht weiter >.< und das bring fehler
so nun muesste er die if solang wiederholen bis da keine zeile mit // mehr ist..
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 16.07.06 19:14 
Sach ich doch ne While Schleife.

_________________
Markus Kinzler.
Niko S. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: So 16.07.06 19:30 
also
z.b.
while string = '//' oder so then mach das und das? gut ich werds mal ausprobiern

andere frage wie kann ich genaue strings in einer memo z.b. suchen ?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 16.07.06 19:46 
Zitat:
andere frage wie kann ich genaue strings in einer memo z.b. suchen ?

Pos bzw. PosEx

_________________
Markus Kinzler.
Niko S. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: So 16.07.06 21:06 
danke
nächste frage *heute voller fragen bin*
wie mach ich denn sone quick-helps
also wenn man über etwas mit der maus fährt und denn eine "blase" oder ein "Vireeck" kommt und da infos stehen?

Und wenn ich jetzt z.b. 2600 zeilen hab oder eine schleife die 2600 mal geht wie mache ich das denn damit ich da die prozentzahl richtig hinbekomme >.< weil ich kann nur integer zahlen angeben und bei 2600 bei gauge +1 da is das ja nach 100 schon 100% obwohl der erst 1 / 26 fertig hat ~.~
danke für die antworten sie helfen mir sehr
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 16.07.06 21:11 
Simak hat folgendes geschrieben:
wie mach ich denn sone quick-helps
also wenn man über etwas mit der maus fährt und denn eine "blase" oder ein "Vireeck" kommt und da infos stehen?
Eigenschaft .Hint.

Zitat:
Und wenn ich jetzt z.b. 2600 zeilen hab oder eine schleife die 2600 mal geht wie mache ich das denn damit ich da die prozentzahl richtig hinbekomme >.< weil ich kann nur integer zahlen angeben und bei 2600 bei gauge +1 da is das ja nach 100 schon 100% obwohl der erst 1 / 26 fertig hat ~.~

Bei einem Fortschrittanzeiger (TProgressBar) kann man dies mit der Eigenschaft .Max einstellen.

_________________
Markus Kinzler.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 16.07.06 22:19 
Zitat:
Und wenn ich jetzt z.b. 2600 zeilen hab oder eine schleife die 2600 mal geht wie mache ich das denn damit ich da die prozentzahl richtig hinbekomme >.< weil ich kann nur integer zahlen angeben und bei 2600 bei gauge +1 da is das ja nach 100 schon 100% obwohl der erst 1 / 26 fertig hat ~.~
danke für die antworten sie helfen mir sehr

Dafür gibt es Prozentrechnung (2600 wären in deinem Fall zum bsp. 100%)
Niko S. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 566
Erhaltene Danke: 10

Win 7, Ubuntu
Lazarus, Turbo Delphi, Delphu 7 PE
BeitragVerfasst: Mo 17.07.06 09:03 
Danke das hat mir geholfen.