• Welcome to PlanetSquires Forums.
 

Passing A Form

Started by SeaVipe, January 07, 2021, 08:48:27 PM

Previous topic - Next topic

SeaVipe

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!
Clive Richey

Paul Squires

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. :-)
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer