Re: 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]> |
Yes, maybe! I'm not used to using Variant, will test that. Thanks, Emile. Friendly Jean-Luc Arnaud Le 20/06/2017 à 11:54, emile.a.schwarz a écrit : > > Variant ? > > > Message du 20/06/17 11:44 > > De : "Jean-Luc Arnaud" <jean-luc-E/[email protected]> > > A : "Nug" <nug-Ktk10zIkF/Jvqtv/[email protected]> > > 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: > <http://email.lists.xojo.com/u/eJwVzEsKwyAQANDTxJ0y_seFix5ldJQIsQGbEujp274DPM4GWaMYGUPwlGqSFTTLHgkkYPQSe6Jkkw6t4uag8nwf15iNB6m-xJ5LjMU4srExgDOeEH0LFqj44HV3YuU2x9EUqVfdb1qfX3PTk_g8_8OVN_P4Aj1mKAI> > > > > > > > unsubscribe > <http://email.lists.xojo.com/u/eJwNyzsOwyAMANDThK3INiaGgaFrpR7CfKLSJhmipFy_ffuriULFYHoiAmZxgtYTskWOEj3xHAmCfehXn9pXO8aYGMbo-4IfEvNKXnIkzMQoAEUyh-AIctXmxc2ezZHeTffbepX_LHW71rNvrXa1y2HONNH9ByuyJWQ> > To unsubscribe click: <http://email.lists.xojo.com/u/eJwNzMENwyAMAMBpyo8IjEPcB4-OYmyHIoVUosn-7Q1wWoA0kuslwxaZVvY7C3nCiD6JVr8FBLSsgTU_MIiO-7j6MO287NO9C0o0jrLntaa0miGCUCUkeGrABG6WJse8_TQ-Kn-7-PNu_2osbfBpy2c2d5UHvH47eSo4>