Results 1 to 2 of 2

Thread: Containers / Parent Tutorial Please

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2009
    Location
    Anywhere I want to.
    Posts
    408

    Containers / Parent Tutorial Please

    I know the basics but I am up against my brain barrier.
    I cannot figure this out.

    On a regular form I have frames, fraTab(0) ... fraTab(n)

    On each fraTab are various controls. Some are Indexed.

    e.g. on fra(0) I have txtIn(0) ... txttIn(n)
    on fra(1) I have chkMe. txtOut(0) ... txtOut(1)
    and so forth.

    I need to loop through ALL controls (oCtrl) to get the state of each control such as .Value , .Text etc.
    However I need to verify the name and get the Index of the FraTab the control resides on.

    I will wind up needing this
    Container_Index(ftaTab Name Index), oCtrl.Name oCtrl.Index oCtrl.Value / .Text
    Of course the Container Name is fraTab but I want to see it.

  2. #2
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,622

    Post Re: Containers / Parent Tutorial Please

    oCtrl.Container.Name is the frame the control resides on. The parent is always the form. Maybe I don't understand your question here if any...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width