| |
|
|
Thomas Zielinski | Hi, I have not find can or it standing objectively nirgendwo. has me In any drop a couple nerves cost[ed].
Nutzt is a For-Loop within of/ one Proc, so must too The Laufvariable in this Proc Deklariert his and not ausserhalb.
the goes:
the is not. (Error Message Variable i% isn't Deklariert [or so similar])
what so did i not find can: Do I to the For one "i% = 0" make if i% before a others worth having, or setting For the value for i% yourself? |
|
|
| |
|
|
|
Thomas Zielinski | Thomas Zielinski (26.10.2021)
what so did i not find can: Do I to the For one "i% = 0" make if i% before a others worth having, or setting For the value for i% yourself?
One kurzer Test confirm: For setting the value the Laufvariable selbstständig back.
Völliges chaos causes then but:
|
|
|
| |
|
|
|
RudiB. | well Yes ...Startwert (I%=5) EndWert (i%=5) Schrittweite=20 ?????? How should the well weg, or seh I there what integrally wrong ??
but the first entry is already very mekwürdig....one BUG ??? here's then well Roland demand.... |
|
|
| |
|
|
|
RudiB. | ....and here's number%[ ] not declared... |
|
|
| Xprofan X4 Rudolf Beske / München
Hardware: NB Intel I9 - 16GByte RAM | 10/26/21 ▲ |
|
|
|
|
Georg Teles | Well, the For expects evident a declared Variable ... if For within of/ one Proc stattfindet, must these there declared or at least transfer been his (as Parameter zB).
loudly Help is very the, what For...EndFor to the WhileLoop Loop can: a variable inside the For Loop inquire, so-called Laufvariable (naturally can inside the WhileLoop Loop the &loop use, with For-creep can hereon dispense, if one self The Variablenvergabe organisiert).
These Laufvariable becomes naturally for For Loop needed ... so went the, if The Variable global declared watts:
After the For Loop becomes The Variable inside the Proc yet the value keep, outside the Proc but again on 0 staid. here can only Roland with want explain, what in the background happens. |
|
|
| |
|
|
|
RGH | One kurzer Verweis on The Help:
important: The Schleifenzähler must local Variable his, d.h. tappt im dunkeln must in the procedure declared go, in the The FOR-Loop is. is tappt im dunkeln in the Hauptprogramm, must The Variable too there declared go.
(Delphi holds it to that example too so.)
Greeting Roland |
|
|
| XProfan X4Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 11/01/21 ▲ |
|
|
|