Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving ALL properties and values for unknown control type

Status
Not open for further replies.

thesleepylizard

Programmer
Joined
Mar 18, 2002
Messages
41
Location
AU
Hi, here's the scenario. I have a subroutine:

Code:
Public Sub DumpProperties (c as Control)

As the name of the sub suggests, I want to be able to dump all of the properties for "c" into, say, the debug window.

I imagine the code would be something like:


Code:
Dim i as long
for i = lbound(c.GetProperties) to ubound(c.GetProperties)
    debug.print c.GetProperties(i).Name + ", " + c.GetProperties(i).Value
next i

You see what I'm trying to do? GetProperties doesn't exist, of course, but I'm sure there would be something like this. I'm just not sure what it is! Does anyone else know how this is possible?

Thanks for your time,
-Sleepy
 
I've provided an answer for this in thread222-244273
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top