ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Non Scooby Related (https://www.scoobynet.com/non-scooby-related-4/)
-   -   VB Question (https://www.scoobynet.com/non-scooby-related-4/16331-vb-question.html)

Fosters 19 December 2000 04:07 PM

There must be some VB devs out there...

how do I extract the methods and properties of an object at runtime? ...like in the IDE when you type text1. and a popup list pops up!


ChrisB 19 December 2000 05:07 PM

Are you trying to get a list of all properties and methods that object supports?

Chris.

Fosters 19 December 2000 05:26 PM

yes, but without having to use a 3rd party DLL to read them for me.

it all seems a bit messy so far!


rsquire 19 December 2000 07:20 PM

Fosters,

I don't think that you can to this directly within VB6. Maybe worth having a look at the VB7 beta as you should be able to do it with that.

Cheers
Richard

ChrisB 19 December 2000 10:14 PM

Erm, I'm no VB guru, but can't you enumerate the Properties Collection of the control in question?

You should be able to say..

For x = 1 to mycontrol.properties.Count

{Do something here}

Msgbox mycontrol.properities.property

Next x

Cheers,

Chris
(Who has only worked in VBA recently!)

Fosters 20 December 2000 03:33 PM

Use TBLINF32.DLL, if anyone's vaguely interested!



All times are GMT +1. The time now is 10:03 PM.


© 2024 MH Sub I, LLC dba Internet Brands