English
Regulars table & Café

Dim, a couple ask...

 
- 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
Declare B#
Dim B#,11
String B#,0 = "0123456789"
Print Char$(B#,0,SizeOf(B#) - 1)
Dim B#,6
Print Char$(B#,0,SizeOf(B#) - 1)
WaitInp

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.
 
08/31/08  
 




Frank
Abbing
Yes, Jörg, its one Cross with the iF. Proggt complicated Vorgänge, but kapituliert with whom simplest Things...
determining is Roland.
 
08/31/08  
 



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?
 
08/31/08  
 




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"?)
 
08/31/08  
 




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.
 
08/31/08  
 




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.
 
09/01/08  
 




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:
CompileMarkSeparation
Cls
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  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

27.788 Views

Untitledvor 0 min.
Michaeal03/21/12

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie