|
-
May 16th, 2001, 06:05 PM
#1
Default properties for Class Objects?
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
-
May 16th, 2001, 08:01 PM
#2
Re: Default properties for Class Objects?
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
-
May 16th, 2001, 09:55 PM
#3
Re: Default properties for Class Objects?
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
-
May 16th, 2001, 10:32 PM
#4
Re: Default properties for Class Objects?
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.
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
|