| |
|
|
Stephan Sonneborn | Hello iF, I Have there time ne question: In my Program have I a Start-procedure, in the some values a INI-File read and some global variables values allocated go. among other things finds itself the entry CompileMarkSeparation The Variable is self-evident global declared.
In different Procedures becomes the globale area CompileMarkSeparation ausgewertet, the before not declared watts. in the further Programmverlauf becomes first of all The Start-procedure called and the variables CompileMarkSeparation one worth allocated. thereafter comes on the Hauptprogrammebene The Variablendeklaration CompileMarkSeparation and the Procedures, The the aray treat, go called. The Interpreter has no trouble so, the XPSE however already, because the bleats, The Variable Data! be not declared. Why?
there the whole Yes quite umständlich To explain is, here example: CompileMarkSeparation |
|
|
|
|
| make a long story short because XPSE always rather a Error unterstellt, as a go through To let.
such Deklarationen (imho alike whether global or local) should to the Programmablauf occur, except naturally The Deklarationen which extra for created are - How z.B. these by Var.
the has something with Includes and Units To do, in them nunmal not only functions declared his must separate Programmteile same carryed out go can.
XProfan self interprets whom code and sees this in Ablaufreihenfolge - this luxery can only very terminable without real Perform emulieren - wohlbemerkt it imho even harmful his can also because of the Overview one Source code.
naturally should XPSE not absolutely warn - particularly there it Yes functions.
Gegenargumentieren could one with you become from slip, if you already the Deklare in the middle in the code have, over this Deklaration on these Variable grab - what then knallt. or only because it in XProfan functions means this yet long not, that it too for all further versions supported is - particularly unless explizit erwähnt is, that it even functions.
Well, and because XPSE even not smell can, which row objectively WANN carryed out becomes, and because it even none disadvantage means one Declare in head anzuwenden, warns it rather.
is really the Deklarieren of static Arrays by Declare in dynamischer Size allows? (I thought always here wären only Konstanten allows what this Anwarnen handfester make would. (imho I had it _auch therefore so gehandhabt)) |
|
|
| |
|
|
|
RGH | iF
is really the Deklarieren of static Arrays by Declare in dynamischer Size allows?
Yes! and in this drop can the DECLARE naturally first then in the code stand, after The Size the Arrays determined watts.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 03/23/09 ▲ |
|
|
|
|
| Jupp, is then too clear...
will be I correct! (if again in the land, ought to these week yet what go) |
|
|
| |
|
|
|
| RGH
iFis really the Deklarieren of static Arrays by Declare in dynamischer Size allows? Yes! and in this drop can the DECLARE naturally first then in the code stand, after The Size the Arrays determined watts. Greeting Roland
Hm? CompileMarkSeparation Hierbei standing of course of term since The function too over the Deklaration, but... |
|
|
| |
|
|
|
Stephan Sonneborn | RGH
iFis really the Deklarieren of static Arrays by Declare in dynamischer Size allows? Yes! and in this drop can the DECLARE naturally first then in the code stand, after The Size the Arrays determined watts. Greeting Roland
Hello Roland, Hello David,
thanks for Your raschen Answer!
I had as Workaround first time the aray static on the Programmanfang staid, around the XPSE benefit to. but now place ichs again there there, where it original was and will be simply time Waiting, what a evtl. Update of XPSE bring...
BTW: After well two years without XProfan - Programming (because of Hausumbau etc.) machts Real again gigant Fun!!! |
|
|
| Schöne Grüße aus Wittgenstein von Stephan
Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz | 03/24/09 ▲ |
|
|
|
|
| Stephan Sonneborn
BTW: After well two years without XProfan - Programming (because of Hausumbau etc.) machts Real again gigant Fun!!!
so does it but not! |
|
|
| |
|
|