S
Saran
Hi all,
Sorry if my question looks weird. But i still want to
understand. Let's see the below code
Dim myStr as string = "Hello"
Msgbox(myStr) ' Would display hello
I am wondering about the behaviour of the string as an object.
How comes it can receive and produce values without accessing any of
its properties. In other words, How to create a class that could behave
exactly like how String behaves.
i.e., For example, if i create a class called "MyOwnString"
What should i do so that below code can work
Dim myStr as MyOwnString = "Hello" ' Should get assgined
Msgbox(myStr) ' Should
display assigned value
Thanks,
Saran.
Sorry if my question looks weird. But i still want to
understand. Let's see the below code
Dim myStr as string = "Hello"
Msgbox(myStr) ' Would display hello
I am wondering about the behaviour of the string as an object.
How comes it can receive and produce values without accessing any of
its properties. In other words, How to create a class that could behave
exactly like how String behaves.
i.e., For example, if i create a class called "MyOwnString"
What should i do so that below code can work
Dim myStr as MyOwnString = "Hello" ' Should get assgined
Msgbox(myStr) ' Should
display assigned value
Thanks,
Saran.