English
Online-Documentation

struct Statement

 

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  
 



Note / Question or Comment to the Help--Topic


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

667 Views

Untitledvor 0 min.
Walter04/11/23
RudiB.04/14/20
Andre Rohland12/10/12

Themeninformationen

this Topic has 1 subscriber:

Michael Wodrich (1x)


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