Re: A little problem defining a variable

"Rucker, Michael" <mcr-yQF00zQ/[email protected]>
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <CAAz1Jw_sgGQsZ2tyVz=skPrp6Rso0COB69ZHxC9QvK2kQxh36Q@mail.gmail.com>
Something is wrong with these emails. I have one here where it looks like I
can unsubscribe myself and the person who the email was sent to. Also, not
sure why they started coming out individually when they used to be a daily
digest.

Weird.




*Michael Rucker*

*IT Manager*
Secure Care Products, LLC

39 Chenell Drive

Concord, NH 03301

Phone: 800-451-7917 x 3005

Cell: 603-568-4972
*INTERNET E-MAIL CONFIDENTIALITY CLAUSE*

The information contained in this transmission (including any attached
files) is CONFIDENTIAL and is intended only for the person(s) named above.
No WARRANTIES or assurances are made to the safety and content of this
e-mail and any attachments. No LIABILITY is accepted for any consequences
arising from it. If you received this transmission in error, please delete
it from your system and notify us immediately. If you are not an intended
recipient, please note that any use or dissemination of the information
contained in this transmission (including any attached files) and the
copying, printing, or retransmission of that information is strictly
prohibited. You can notify us by return email, by phone at 800-451-7917 or
by fax at 603-227-0200. Thank you.

On Tue, Jun 20, 2017 at 7:51 AM, Jon Ogden <[email protected]> wrote:

> I had a situation where I had to do this myself and what I did was I
> created a master subclass for my two objects that had all the “common”
> items.  I then created two subclasses of that custom subclass and put what
> was different in those.
>
> Now you can treat them as a common subclass of type MySubclassObject for
> example.  But then in your code you can check which you are dealing with
> using IsA.  So your property is of type MySubclassObject but each on is say
> MySubclassObject1 and MySubclassObject2.
>
> Then you do:
>
> If MyProperty IsA MySubclassObject1 Then
>
>     // Do this
>
> Else
>
>    // Do something else
>
> End If
>
> Now you can also use class methods and events to help define the master
> property/variable as well.
>
>
> Hope this helps.
>
> Jon
>
> > On Jun 20, 2017, at 4:44 AM, Jean-Luc Arnaud <jean-luc-E/[email protected]>
> wrote:
> >
> > 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/eJwNyzsOwyAMANDThI3I_M3A0KMYG7dUpZGi5P7t2580j-
> LQzIY5J6pcLYMTq4XAApZkUSvVUF0ejFsElnV_rrmGTNr1NK8WRXVw0MDYY_
> ddYVQfsXAK5AN4c7b38ZTx_e9FvPOxzNU2__gBkrEkHw>
> >
>
>
>
> To unsubscribe click: <http://email.lists.xojo.com/u/
> eJwdyzEOwyAMAMDXhI3KEINh8BBC-g9iiNoBVSLt_xN1Pekq21BNUG-
> OkCgnn3QKtGnMkHXKSNo_cd5WcBYXmBB6kYd8unpx3UGMmw8h58mUw_
> qGt1HdJUawQQ3uMu5yNvmNJmW0__zyZJcLVNohMg>
>
>



To unsubscribe click: <http://email.lists.xojo.com/u/eJwdzLsOgjAUANCvoRvk0kKBoQNgotFB6-DAYgqlhfAyLSjy9QaXMx7JcCz9GLUsT9PNP3-eVh-5LfD8fWwOOdjuZl70bifIrxlNitOaJ_x9wR1fG0K5E8Ag2t7Tf6tpQA2jgLGScaSgpAIERIRGIYEkkKpWoZDIMF31ZnFNLfpS2LZyx0Xv096MtTcZjWbm4PQHQ4Mxww>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.