C
CreateObject
Assume that I have the classes below;
class mercedes: IAuto {
....
}
class ford: IAuto{
....
}
class audi: IAuto{
....
}
Is it possible to create objects derived from these classes by just using
strings. In other words, CreateObject("mercedes") will return mercedes
object and so CreateObject("ford") will give me the ford one...
It is important for me that the way you are suggesting must not use the
conditional things like if or switch.
How can I do that?
Thanks.
class mercedes: IAuto {
....
}
class ford: IAuto{
....
}
class audi: IAuto{
....
}
Is it possible to create objects derived from these classes by just using
strings. In other words, CreateObject("mercedes") will return mercedes
object and so CreateObject("ford") will give me the ford one...
It is important for me that the way you are suggesting must not use the
conditional things like if or switch.
How can I do that?
Thanks.

