M
Mark Jones
This rather cryptic title is actually a .net oop noob question.
Example:
My customer object has a public property called .name which is a string.
I would like to be able to reference mycust.name.length which would return
the string length of the value of name.
I can't nest property/subs so how do I accomplish this?
Another example would be adding something like .tostring to my own
object properties. What if I wanted to add a .tostring to every
numeric property of my objects? I would like to write just one .tostring
function and then have every property inherit that method. So I could
reference my objct props as follows:
mycust.ordernum.tostring
Little help? Shove in the right direction? Are these considered
"attributes?"
Example:
My customer object has a public property called .name which is a string.
I would like to be able to reference mycust.name.length which would return
the string length of the value of name.
I can't nest property/subs so how do I accomplish this?
Another example would be adding something like .tostring to my own
object properties. What if I wanted to add a .tostring to every
numeric property of my objects? I would like to write just one .tostring
function and then have every property inherit that method. So I could
reference my objct props as follows:
mycust.ordernum.tostring
Little help? Shove in the right direction? Are these considered
"attributes?"