End_Type
Obsolete
The End_Type command is obsolete. See the Struct command for creating and using structured types in DataFlex.
Be aware of existing code using Type. Type definitions convert signed values to unsigned; structs do not. This could impact your code after converting to structs, where signed values were previously converted.
See Also: Field, Put, Type, Structured Types
Purpose
To declare a structure for the C programming language, for use with DLL calls from DataFlex programs.
Syntax
Type {type-name}
Field {field-name} as {data-type}
...
End_Type
Where {type-name} is the name of the complex data type; {field-name} is the name of a field. There can be as many fields in the type declaration as you wish; and {data-type} is any DataFlex representation of a 'C' data type.
What It Does
Type enables you to create a complex data structure in memory for use in passing parameters for DLL calls from DataFlex programs.
Type tv_item
Field tv_item.mask as DWORD
Field tv_item.hItem as HANDLE
Field tv_item.state as DWORD
Field tv_item.stateMask as DWORD
Field tv_item.pszText as POINTER
End_Type
Note
If you declare a structure, the size of the structure is automatically stored in a symbol called _Size.