|
-
Aug 15th, 2023, 02:36 PM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 15th, 2023, 03:47 PM
#2
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...
Last edited by VanGoghGaming; Oct 13th, 2023 at 04:26 PM.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|