[fpc-pascal] How to init Array values in a record?
yu ping
spingyu at gmail.com
Thu Feb 4 16:54:58 CET 2010
_TBBUTTON = Record
iBitmap : cint;
idCommand : cint;
fsState : BYTE;
fsStyle : BYTE;
bReserved : ARRAY[0..1] OF BYTE;
// padding for alignment=
dwData : DWORD_PTR;
iString : INT_PTR;
END;
TBBUTTON = _TBBUTTON;
I want to init record values when I define variables like following:
tbrbtns:array[0..5] of TBBUTTON =(
(iBitmap:7;idCommand:10000;fsState:TBSTATE_ENABLED;fsStyle:TBSTYLE_BUTTON;(0,0);dwData:0;iString:0),
...
);
but the field "bReserved" is a array,I don't know how to init a array
field in a record,any one can help?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100204/c43d7cef/attachment.html>
More information about the fpc-pascal
mailing list