A little problem defining a variable
Jean-Luc Arnaud <jean-luc-E/[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
Hi all, I'm facing a little problem when defining a variable. My project has two ContainerControls, each of them representing graphically two objects very equivalent but not totally identical. In my code, I have to define a variable representing only one of these objects, but I don't know, when defining it, what object. Here is my problem: How to define a variable I don't know the type (Object1 or Object2), based on class ContainerControl? I tried to define it as ContainerControl, but can't assign it later the type Object1 or Object2. I tried to define it as Object1, but can't redefine it as Object2 is needed. I'm sure the solution is obvious, but can't figure it out. TIA for your help. -- Jean-Luc Arnaud To unsubscribe click: <http://email.lists.xojo.com/u/eJwNzMENwyAMAMBpwo8IEgzmwaOjGBsoUkglGvZvb4CTdKBYVD2h90CRo2ZjRddARhsMoLFGime0vjBuzrCMdT19FOm016ne6Sy5MKCrh82QbXEEgR1ED-w4iKiZGl9z6VnoyvTtrO_V_tXY26C77J_Z1JO24_UDP0cqlA>