PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Passing A Form  (Read 383 times)

SeaVipe

  • Senior Member
  • ***
  • Posts: 397
  • Windows 10
Passing A Form
« on: January 07, 2021, 08:48: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!
Logged
Clive Richey
You're Either Part Of The Solution, Or You're The Problem.
#StaySafe, Always  Keep A Safe #SocialDistance, #WashYourHands Often and please, #StayHome!

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9387
  • Windows 10
    • PlanetSquires Software
Re: Passing A Form
« Reply #1 on: January 08, 2021, 10:36: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. :-)
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer