[AccessD] OT - VB6 Loop Through All Forms & Controls

Shamil Salakhetdinov shamil at users.mns.ru
Thu Jul 20 06:36:29 CDT 2006


Paul,

On Runtime in VB6 there is a Global.Forms collection (or just Forms), which
has the references to the currently loaded forms. Every form has Controls
collection, every compound control has its own Controls collection...

HTH,
Shamil

----- Original Message ----- 
From: <paul.hartland at fsmail.net>
To: "accessd" <accessd at databaseadvisors.com>
Sent: Thursday, July 20, 2006 3:17 PM
Subject: [AccessD] OT - VB6 Loop Through All Forms & Controls


> To all,
>
> Don't seem to be getting many messages through from the VB group for some
reason which is why I have posted this question here.  I have a VB6 app,
with lots of forms and lots of contols on each form.  What I want to do is
write a quick function that will loop through every form and every control
on that form and return the data field that the control is using.
>
> Can anyone help me on this with sample code or point me to a website.
>
> Thanks in advance
>
> Paul Hartland
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>




More information about the AccessD mailing list