LB Booster
« arrays of structures »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:46am



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!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: arrays of structures  (Read 262 times)
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx 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?

r.m.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: arrays of structures
« Reply #1 on: Nov 6th, 2016, 7:34pm »

on Nov 6th, 2016, 5:20pm, Alincon wrote:
What can be done with arrays of structures?

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.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls