On Jun 26, 2006, at 1:29 PM, Chuck Pelto wrote:

It seems that if one passes a control to a method as a generic control, e.g.,

DoMethod(theControl) // where theControl is actually an EditField

and the params of DoMethod receive it as follows:

DoMethod(theControl as Control)

The calls to IsA in DoMethod don't recognize that control as an EditField.

It doesn't help to send the control across as "me", either.

Any suggestion on how to do a generic pass of a parameter to DoMethod and STILL have IsA recognize what sort of control is being passed?

It works for me in a quick little test
How are you getting "theControl" ?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to