re: A little problem defining a variable
"emile.a.schwarz" <[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <220447371.5214.1497952469208.JavaMail.www@wwinf1k27> |
Variant ? > Message du 20/06/17 11:44 > De : "Jean-Luc Arnaud" > A : "Nug" > Copie à : > Objet : A little problem defining a variable > > 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: > > To unsubscribe click: <http://email.lists.xojo.com/u/eJwNzEsOwiAQANDTlF0JMw4FFizcmniI4VMkUkzQyvX1HeAljzaBFdUjKiJzMSA1AkkgZ5xG2hwqK2_85TvXJuecC6k5a9_hiUY8fAgbW4AAhinrnFwkThb1biIgRhbDl9jGuY7MLfC7xrWf5Z8cshzcs3yNIj5-wesPkxkpKA>