| |
|
|
- Page 1 - |
|
Jörg Sellmeyer | the here functions. SizeOf determined too whom right worth. with String$(B#,0) becomes however nevertheless always the whole String outputted: CompileMarkSeparation Profanhilfe
The commands can ex XProfan 10 number of times on a Memory-Variable apply and be changes dynamic The Size the Speicherbereiches. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/30/08 ▲ |
|
|
|
| |
|
- Page 3 - |
|
|
| Jörg Sellmeyer
should Roland itself consider, whether it Access to memory outside the program as bow or feature ansieht. i'd say, that Access to unreservierten memory, by the Programmer To avoid is. |
|
|
| |
|
|
|
Frank Abbing | Yes, Jörg, its one Cross with the iF. Proggt complicated Vorgänge, but kapituliert with whom simplest Things... determining is Roland. |
|
|
| |
|
|
|
| RGH
String$ reads until first byte(0), Char$ The angegebene amount characters.
Greeting Roland
@Frank: and so I your testimony not so right sort can - what very übersehe I really? |
|
|
| |
|
|
|
Jörg Sellmeyer | I faith, we must not clarify what String$ power, but what Dim power/make ought to. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/31/08 ▲ |
|
|
|
|
| memory reservieren and Size Change. (and yet one NULL-byte hinten append? If I on a Strukturgröße zurückändere would the latest byte simply "übermalt"?) |
|
|
| |
|
|
|
Jörg Sellmeyer | what is zurückändern. If you whom area to the Verkleinern again vergrößerst, have You none claim hereon, that the Content yet so is How before. The can Yes through zig others processes überschrieben his. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 08/31/08 ▲ |
|
|
|
|
| Zurückändern naturally not senses of enhance - separate verkleinern. |
|
|
| |
|
|
|
Jörg Sellmeyer | OK, now white I faith I, where the trouble lying. I have supra Dim B#,10 written and 1-9 + NULL written. with one Nullbyte hinten on whom Speicherbereich appended könntetst You yourself but hopefully arrange, or? it ought to so ausehen:
| 0|1|2|3|4|5|6|7|8|9|z | |
and Dim area#,6 power then
| 0|1|2|3|4|5|6|z|8|9|z | |
from the Speicherbereich. all right? |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/01/08 ▲ |
|
|
|
|
| On quite none drop ought to Roland memory paint unklarer Zuordnung, that can even crashen.
If at all could Roland +1 reservieren, hinten a 0 reintun, then on +0 reservieren. The 0 "hinten" dran would then but still inkonsistent - means too balderdash. |
|
|
| |
|
|
|
Jörg Sellmeyer | Well - somehow similar must it it indeed at first time make... |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/01/08 ▲ |
|
|
|
|
RGH | even if I in leave be:
Dim reserved memory, describe it but not. it'll means too no zero-byte eingefügt.
what presumably irritiert, is the fact, that sowohl String$() as well as Char$() from Tempogründen The Bereichsgrenzen not to check on. here can sure for coming XProfanversionen diskutieren, whether a such Überprüfung meaningfully or not.
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 | 09/01/08 ▲ |
|
|
|
|
Jörg Sellmeyer | But if I a area dimensioniere, is still the latest byte always first one Nullbyte: CompileMarkSeparationCls
Declare B#
Dim B#,10
Print SizeOf(B#)
Print Len("123456789")
Char B#,9,"z"
String B#,0= "123456789"
String B#,0= "0123456789" das knallt
Print String$(B#,0)
Char B#,9,"z"
Print String$(B#,0)
Dim B#,6
String B#,0="98765"
Print String$(B#,0)
Dispose B#
Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 09/01/08 ▲ | |
|
|
|