Click to See Complete Forum and Search --> : Default properties for Class Objects?


dataweaver
May 16th, 2001, 06:05 PM
Is there a way to specify a property of a user-defined Class Object as a default property, as is done for the various objects in DAO? An example of what I'm looking for is the "Item" property of the Collections object: C(index)

gives the same result as C.Item(index)

.

--
Jonathan Lang

cksiow
May 16th, 2001, 08:01 PM
go to Tools menu, click Procedure Attributes.

Use the name box to select the property that u want to set a default.

Click on Advanced button. Check User Interface Default.

there u got it.

HTH

cksiow
http://vblib.virtualave.net - share our codes

dataweaver
May 16th, 2001, 09:55 PM
Thank you.

What versions of Visual Basic is this feature available in? In particular, is it available in VBA, specifically the VBA found in Access 97?

On a side note: a possible use of this feature would be to implement inheretence; define the "base class" as the default property of the current class. Unless there's a better way to do it?

--
Jonathan Lang

cksiow
May 16th, 2001, 10:32 PM
VB 5 & 6 have it. not sure on VBA.

I think the "inherentence" here is mean properties, right ? as far as I know, code is not possible at this moment.