Xojo Conferences
XDCMay2019MiamiUSA

REALproperty (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Re: REALproperty (Jon Ogden)
Next thread: get Cstring


macosx and unix paths   -   GOLD
  REALproperty   -   Devulder jean-paul
   Re: REALproperty   -   Jon Ogden
   Re: REALproperty   -   v101977 prodigy.net.mx

REALproperty
Date: 28.05.13 15:14 (Tue, 28 May 2013 16:14:46 +0200)
From: Devulder jean-paul
Hi all,

I want add to my class a properties with 2 parameters

like:

dim mc as new myclass

mc.myprop(2,4) = 5

It's possible ?

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: REALproperty
Date: 28.05.13 15:25 (Tue, 28 May 2013 09:25:36 -0500)
From: Jon Ogden

On May 28, 2013, at 9:14 AM, Devulder jean-paul <<email address removed>> wrote:

> I want add to my class a properties with 2 parameters
>
> like:
>
> dim mc as new myclass
>
> mc.myprop(2,4) = 5

This would be an array.

if you want a property that has two items to it consider creating a pair. The pair data type allows you to specify a "left" value and a "right" value. So:

mc.mypair = 5 : 10

Then you refer to it as:

Dim i as integer = mc.mypair.left

i then would equal 5.

The values in a pair are variants so they can hold just about any sort of data type.

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: REALproperty
Date: 28.05.13 15:26 (Tue, 28 May 2013 09:26:53 -0500)
From: v101977 prodigy.net.mx
its a array

----- Original Message -----
From: Devulder jean-paul <<email address removed>>
To: <email address removed>
Date: Tue, 28 May 2013 16:14:46 +0200
Subject: REALproperty

> Hi all,
>
> I want add to my class a properties with 2 parameters
>
> like:
>
> dim mc as new myclass
>
> mc.myprop(2,4) = 5
>
> It's possible ?
>
> Thanks,
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>