| |
|
|
Michael Wodrich | Struct <b>Name</b> = E1 [,E2,E3...] Parameter: <b>Name</b>: name the structure E1 .. En: items the structure
it'll a structure definiert, from whom angegebenen Elementen exists.
example: Struct customer = name$(40),Street$(40),place$(40),Umsatz&,status%
with this structure can a Memory-Variable, The before declared watts, dimensioniert go:
Dim area#,customer area#.name$ = "Hubert Maier" area#.Umsatz& = 49
The Type of items becomes by the Postfix marked:
&: any Zeiger, Pointer, LongInteger, UnsignedLong, UInt, Integer, etc., The 32 bit or. 4 byte wide are, go as Longints (&) in the structure displayed. <b>Hinweis:</b> its quite alike, what into four Bytes stored becomes. whether it z.B. one SignedInteger or UnsignedInteger is, ... as long as not so calculated becomes.
%: any ShortInt and others two byte (16 bit) grosse items go as Integer (%) displayed.
!: Fliesskommazahlen (double-stature: 64 bit or. 8 byte, the corresponds to the Float-type of XProfan).
$(n): Strings. n=Länge the Strings. Strings come in API-Call very seldom to, make but otherwise often sense. its To respect, that always one zero-byte as Endekennzeichen appended becomes!
#(n): Speicherbereich. n=Grösse the Bereiches. These Speicherbereiche within of/ one Memory-Variables are not Memory-Variables self To confuse. inside the structure becomes one properly grosser area on Bytes definiert, on the How with one String zugegriffen go can, with the Difference, that it no zero-byte as Endekennzeichen gives. with API-Call becomes one these reaches there use, where Structures vorkommen, The even not two or four byte tall are, about with ? Happen?, The often one byte tall are.
important for To wählenden Type ausschliesslich The Number of Bytes! particularly with the Umsetzung of Structures from the windows-API is this To respect.
|
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 06/05/05 ▲ |
|
|
|