The following cast is valid as it should be if GetSomeObject() truly is
returning a
object of Type Class1.
Dim b as Class1
Dim c as Object
c = GetSomeObject()
b = Class1(c)
However if the Code above is put inside of class 1, then suddenly it
becomes impossible to
cast to the type Class1 (Probably because its looking for a constructor
to call instead of casting as it should be doing)
Is there something that I'm missing or is this just a known serious
flaw that there is no way to
cast to the type Class1 from within Class1 ??
--
______________________________________________________________________
Björn Eiríksson bjorn at einhugur dot com
Einhugur Software einhugur at kagi dot com
www.einhugur.com
______________________________________________________________________
Einhugur Software has sold its products in 39 countries world wide.
______________________________________________________________________
For support: support at einhugur dot com
For bug reports: bugs at einhugur dot com
To post on the maillist: einhugur at yahoogroups dot com
---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>
Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.
|