Hallo Rudi, 

--- Rudi Maier <[EMAIL PROTECTED]> wrote:

> Wie kann ich den IllegalCastException Error
> verhindern und warum tritt  
> er auf?
> Ich benutze RB 2007 R 3
> Mit RB 5.5.3 funktionierts.


Das Handbuch sagt zu IllegalCastException: "An
IllegalCastException error occurs when you attempt to
cast an object to a different type and call a method
or access a property belonging only to the original
type. For example, if you recast a BevelButton as a
PushButton (see the example below) and then call the
Pushbutton's Push method, an IllegalCastException will
occur because a BevelButton isn't a PushButton and
happens not to have a Push method."

Kannst du evtl. etwas Code zeigen? Einfach so aus dem
Bauch heraus können wir dir nicht helfen. 

Durchsuche doch mal deinen Code und überprüfe, ob du
irgendwo einen Cast von einer auf eine andere Klasse
durchführst und nachher versuchst, eine Methode der
ersten Klasse aufzurufen, welche in der zweiten nicht
definiert ist. 

Grüsse
Jef




      
____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/

Antwort per Email an