>even though it is indeed possible in VB, why would you _even_ want to do
>it in VB, VFP, or any other language. to save typing a few characters ?
>or am i missing some benefit that you see ?
>
>it's bad enough to use the default property in VB, but imagine how unclear
>code would be if you could redefine which property was the default property.
>
I have custom classes used for some of my data and I would have find this useful. To illustrate:
define class LogDO as Custom
add object iLogID as CustomDataObject with Value = 0, ControlClass ='Textbox'
add object iLogDesc as CustomDataObject
enddefine
define class CustomDataObject as Custom
Value = NULL
Caption = ''
ControlClass = ''
enddefine
Now I have a custom data object that I can pass anywhere. And wouldn't it be wonderful if I can just say:
oLogDO.iLogID instead of
oLogDO.iLogID.Value ?
>certainly, a feature that i hope to never see !!
Different strokes for different folks.
ramil
~~ learning to stand still