Welcome Guest. Please Login or Register. Apr 1st, 2018, 04:20am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
arrays of structures
« Thread started on: Nov 6th, 2016, 5:20pm »
More browsing of LBB documentation (new features):
What can be done with arrays of structures? I've only seen individual structures used for sending/receiving parameters. Could an array of structures be used with file I/O?
Commonly used with CALLDLL, because there are some Windows API functions that take an array of structures as a parameter. One, GdipGetPropertyItem, came up recently in the 'Displaying animated GIFs' thread; amongst several others are CreateAcceleratorTable and GetCharABCWidths.
But you could certainly use an array of structures independently of CALLDLL. Any time you have a set of 'things', each of which is well described by a struct, the entire set can be represented as an array of structs.
Something to bear in mind, though, is that you cannot REDIM an array of structures so you need to create it initially as large as you'll need in that run of the program.