This is part of the HicEst documentation

STRUCT: Data structure mostly for use with DLLs

To define, set the order and data type of structure members, and to initialize a structure of integers, floating point numbers, and other structures..

⇾Home ⇾Contents ⇾more Programming ⇾ Examples

⇾define_4_member_struct ⇾define_struct_of_structs ⇾display_structure

Optional keywords:
(Syntax of optional keywords)
Bytes CHar CHar0 CHar0P CHarP GetPage I1 I1P I1U I1UP I2 I2P I2U I2UP I4 I4P I4U I4UP I8 I8P R4 R4P R8 R8P STruc STrucP SetPage
Executed in script order. Multiple occurences possible
SetPage struc = STRUCT(..., SetPage=n) to set value-page n in struc as in the example above
GetPage STRUCT(STruc=struc, GetPage=m) retrieves the data of struc, page m
Bytes struc = STRUCT(..., Bytes=len) on return variable len has the byte count of struc
data_type type
all POINTERS take up 4 bytes in STRUC
I1P num pointer to signed 1-byte-integer
I2P num pointer to signed 2-byte-integer
I4P num pointer to signed 4-byte-integer
I8P num pointer to signed 8-byte-integer
I1UP num pointer to unsigned 1-byte-integer
I2UP num pointer to unsigned 2-byte-integer
I4UP num pointer to unsigned 4-byte-integer
R4P num pointer to 4-byte-floating
R8P num pointer to 8-byte-floating
CHarP txt pointer to character string
CHar0P txt pointer to character string, 0-terminated
STrucP txt pointer to a structure
data_type type
VALUES will not be padded
(no extra spaces to meet word boundaries etc)
I1 num value of signed 1-byte-integer
I2 num value of signed 2-byte-integer
I4 num value of signed 4-byte-integer
I8 num value of signed 8-byte-integer
I1U num value of unsigned 1-byte-integer
I2U num value of unsigned 2-byte-integer
I4U num value of unsigned 4-byte-integer
R4 num value of 4-byte-floating
R8 num value of 8-byte-floating
CHar txt character string value
CHar0 txt character string value, 0-terminated.
STruc txt value of a structure

Support HicEst   ⇾ Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.