PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: SeaVipe on January 07, 2021, 09:18:27 PM

Title: Passing A Form
Post by: SeaVipe on January 07, 2021, 09:18:27 PM
Is there a way to pass a form to a function and have that form's controls accessible from the function? A form can be passed to a function but items like buttons and listviews are not defined and throw errors. I know, pretty vague question with few details but I think I almost know the reason for this behaviour!
Title: Re: Passing A Form
Post by: Paul Squires on January 08, 2021, 11:06:40 AM
I see what you are trying to do but unfortunately this is a limitation. The Form stores references to its child controls in an internal wfxLList structure. You can't directly access a child control using the dot syntax because it needs to be retrieved from that internal collection. It is complicated. :-)