<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Request asscoccel_properities in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226280#M7315</link>
    <description>&lt;BLOCKQUOTE&gt;ispyridis wrote:&lt;BR /&gt;I'm trying to refine the associated property object label I posted earlier in this thread. I'm trying to use the values retrieved as drop down lists to filter information. I use command : values "___dbsetname" _dbsetname&lt;BR /&gt;
_dbsetname is an array that holds the names of the databases that provide info to the property object. Is this a problem of the request ASSOCEL_PROPERTIES? can the values retrieved in array be used for parameter values. &lt;BR /&gt;
&lt;BR /&gt;
P.S. in the array there are common records is this a problem? should I make a new array that holds descrete values?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 Thanks Ioannis&lt;/BLOCKQUOTE&gt;

it seems my problem is that the array has duplicate values. is there a way to make an array with unique values out of the initial one?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Fri, 06 Jan 2017 21:40:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-06T21:40:23Z</dc:date>
    <item>
      <title>Request assocel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226269#M7304</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi I'm working on a label that shows the keycodes of the components of the associated  properties.&lt;BR /&gt;
&lt;BR /&gt;
I used the example in gdl guide on REQUEST ASSOCEL_PROPERTIES&lt;BR /&gt;
I used the command in the 2D script not in parameter or master script&lt;BR /&gt;
&lt;BR /&gt;
To make an example I used  a composite wall and its associated property object.&lt;BR /&gt;
&lt;BR /&gt;
The property object has many components that retrieve information from different databases.&lt;BR /&gt;
&lt;BR /&gt;
The resulting label is alittle bit odd.&lt;BR /&gt;
It retrieves the key codes from the property object from components of both  of the databases that is use, but not all of them.&lt;BR /&gt;
&lt;BR /&gt;
furthermore I would like to ask how I could limit my results to the key codes of the components of a certain database? I don't understand clearly how the matrix stores data and if I should use one or two dimensinal array and how to retrieve certain information.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/15184i90E3717F41626FD4/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2016-09-01_13h34_03.png" title="2016-09-01_13h34_03.png" /&gt;</description>
      <pubDate>Thu, 01 Sep 2016 11:12:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226269#M7304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T11:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226270#M7305</link>
      <description>pic2&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/7972iA966B8D87AF3E5C4/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2016-09-01_13h35_54.png" title="2016-09-01_13h35_54.png" /&gt;</description>
      <pubDate>Thu, 01 Sep 2016 11:13:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226270#M7305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226271#M7306</link>
      <description>pic3&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/12060i80FCC3CBFC547DE1/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2016-09-01_13h35_17.png" title="2016-09-01_13h35_17.png" /&gt;</description>
      <pubDate>Thu, 01 Sep 2016 11:14:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226271#M7306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T11:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226272#M7307</link>
      <description>pic4</description>
      <pubDate>Thu, 01 Sep 2016 11:15:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226272#M7307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226273#M7308</link>
      <description>I finaly managed to get the code running. A kind of property label is ready.&lt;BR /&gt;
It filters info from the retrieved array by category of info.&lt;BR /&gt;
&lt;BR /&gt;
Generally filtering within the array can be made only by index.&lt;BR /&gt;
I tried many combinations of string functions and expressions and nothing works you cannot make string comparisons or filter info by string contents.&lt;BR /&gt;
&lt;BR /&gt;
for example &lt;BR /&gt;

&lt;PRE&gt;IF DATA&lt;I&gt; = "KEYNOTEDB" THEN 
TEXT2 0,J, DATA[i+2]&lt;/I&gt;&lt;/PRE&gt;
is not working&lt;BR /&gt;
&lt;BR /&gt;
if I want to get the keycodes of the descriptors that come from keynotedb&lt;BR /&gt;
I could filter iscomp for descriptors 0 or 1 then the database "keynotedb" and ask for KEYCODE but this seems not be possible&lt;BR /&gt;
&lt;BR /&gt;
I also noticed that descriptor info is read first then it reads the components&lt;BR /&gt;
they are stored linearly in the 1D array in a series of packets of requested values in the order that was requestd by the REQUEST command&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2D Script&lt;BR /&gt;

&lt;PRE&gt;n=0
DIM DATA[], xxx[]
nnn = REQUEST ("ASSOCEL_PROPERTIES", "dbsetname,iscomp,keycode,keyname,code,name,fullname,quantity,totquantity,unitname,unitformatstr,propobjname", n, DATA)
if n = 0 then
    TEXT2 0, 0, "No properties"
ELSE
	j = 0
	for i=1 to n 

!!!!			xxx&lt;I&gt; = strlen (data&lt;I&gt;)			!string functions or string expressions do not work

			IF   i/intype = 1 or (i-intype)/12 = int((i-intype)/12) THEN 

			TEXT2 0, -j, DATA&lt;I&gt;
!!!!			text2 -1,-j, xxx&lt;I&gt;					!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
			j=j+1 

			ENDIF 

NEXT i
ENDIF	
&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;BR /&gt;
Parameter script&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;
!lock "xxx"     !!!!!!!!!!!!! tryied to pass data from DATA[] to other 
!values "xxx" xxx !!!! !! parameters or variables---doesn't work----


values "_intype" "dbsetname" ,"iscomp" ,"keycode" ,"keyname" ,"code" ,"name" ,"fullname" ,"quantity" ,"totquantity" ,"unitname" ,"unitformatstr" ,"propobjname"




IF _intype = "dbsetname" then values "intype" 1
IF _intype = "iscomp" then values "intype" 2
IF _intype = "keycode" then values "intype" 3
IF _intype = "keyname" then values "intype" 4
IF _intype = "code" then values "intype" 5
IF _intype = "name" then values "intype" 6
IF _intype = "fullname" then values "intype" 7
IF _intype = "quantity" then values "intype" 8
IF _intype = "totquantity" then values "intype" 9
IF _intype = "uniname" then values "intype" 10
IF _intype = "unitformatstr" then values "intype" 11
IF _intype = "propobjname" then values "intype" 12

&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Sep 2016 11:51:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226273#M7308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226274#M7309</link>
      <description>&lt;BLOCKQUOTE&gt;ispyridis wrote:&lt;BR /&gt;
Generally filtering within the array can be made only by index.&lt;BR /&gt;
I tried many combinations of string functions and expressions and nothing works you cannot make string comparisons or filter info by string contents.&lt;BR /&gt;
&lt;BR /&gt;
for example &lt;BR /&gt;

&lt;PRE&gt;IF DATA&lt;I&gt; = "KEYNOTEDB" THEN 
TEXT2 0,J, DATA[i+2]&lt;/I&gt;&lt;/PRE&gt;
is not working&lt;BR /&gt;
&lt;BR /&gt;
if I want to get the keycodes of the descriptors that come from keynotedb&lt;BR /&gt;
I could filter iscomp for descriptors 0 or 1 then the database "keynotedb" and ask for KEYCODE but this seems not be possible&lt;BR /&gt;
&lt;BR /&gt;
I also noticed that descriptor info is read first then it reads the components&lt;BR /&gt;
they are stored linearly in the 1D array in a series of packets of requested values in the order that was requestd by the REQUEST command
&lt;/BLOCKQUOTE&gt;

Hi.&lt;BR /&gt;
There are several things going on here. You could certainly use
&lt;PRE&gt;IF DATA&lt;I&gt; = "KEYNOTEDB" THEN&lt;/I&gt;&lt;/PRE&gt;
but you have to make sure that you are comparing the same thing (contents of the array vs checked value): a requested array could be of mixed value types and you could be comparing a numeric value vs a string, and in this case it is better if all &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; of the DATA array contain values like "KEYNOTEDB" for AC to compare. It is quite easy to loose track of this, for example, after your comparison you put&lt;BR /&gt;

&lt;PRE&gt;DATA[i+2]&lt;/PRE&gt;
but you just stated that the value in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; was as string for comparison, so "i+2" wouldn't work.&lt;BR /&gt;
&lt;BR /&gt;
Filtering within the array, as you point out, can only be done by index number -or any expression that resolves to a number-, so your &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; could be 1 or MyVariable as long as MyVariable resolves to 1 or any number (e.g. MyVariable=1, or =2+3, or =1+anotherNumericVariable)&lt;BR /&gt;
&lt;BR /&gt;
As with many things in ArchiCAD, it is better to work with integers/index numbers to reference things, so to better understand this, you could use a single integer type parameter and use values{2}. I've found it works great!&lt;BR /&gt;
So you could have something like this in your parameter script:&lt;BR /&gt;

&lt;PRE&gt;DIM iselection[], stSelection[]
iselection[1]=1		:stSelection[1]="dbsetname"
iselection[2]=2		:stSelection[2]="iscomp"
iselection[3]=3		:stSelection[3]="keycode"
iselection[4]=4		:stSelection[4]="keyname"
iselection[5]=5		:stSelection[5]="code"
iselection[6]=6		:stSelection[6]="name"
iselection[7]=7		:stSelection[7]="fullname"
iselection[8]=8		:stSelection[8]="quantity"
iselection[9]=9		:stSelection[9]="totquantity"
iselection[10]=10	:stSelection[10]="uniname"
iselection[11]=11	:stSelection[11]="unitformatstr"
iselection[12]=12	:stSelection[12]="propobjname"

values{2} "intype" iselection,stSelection

!!!OPTIONAL VALUE ASSIGNMENT
!!!values{2} "intype",\
!!!1,"dbsetName",\
!!!2,"iscomp",\
!!!3,"keycode",\
!!!4,"keyname",\
!!!5,"code",\
!!!6,"name",\
!!!7,"fullname",\
!!!8,"quantity",\
!!!9,"totquantity",\
!!!10,"uniname",\
!!!11,"unitformatstr",\
!!!12,"propobjname"

&lt;/PRE&gt;

You'll notice that your integer parameter gives text descriptions instead of the numeric value. The first way (with two arrays) is the better option as it would allow you to iterate between all array values in a loop, or call anything based on the selection, you just have to manage two arrays. The second, more static option will let you have index and value in the same sentence but wouldn't give you looping options. Works great when giving simple options to the user to select from.&lt;BR /&gt;
In both cases, you would use the integer values in the script, e.g.
&lt;PRE&gt;IF intype=5
!!!you know that 5=code&lt;/PRE&gt;
&lt;PRE&gt;IF intype=iselection[5]
!!!but this is exactly the same as just using "5"&lt;/PRE&gt;
Be careful to &lt;B&gt;NOT&lt;/B&gt; use
&lt;PRE&gt;IF intype="code"
!!!intype is an integer parameter!&lt;/PRE&gt;
&lt;PRE&gt;IF intype=stSelection[5]
!!!intype is an integer parameter!&lt;/PRE&gt;

I would place both arrays (integer and descriptors) in master script though, and just leave values{2} in parameter script.&lt;BR /&gt;
This integer logic helps a lot when working with arrays, databases, keycodes and descriptors. &lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 05 Sep 2016 15:57:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226274#M7309</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2016-09-05T15:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226275#M7310</link>
      <description>Hi SinceV6,&lt;BR /&gt;
&lt;BR /&gt;
in your answer you state:
&lt;BLOCKQUOTE&gt; It is quite easy to loose track of this, for example, after your comparison you put &lt;BR /&gt;
&lt;BR /&gt;
Code:&lt;BR /&gt;
DATA[i+2]&lt;BR /&gt;
&lt;BR /&gt;
but you just stated that the value in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; was as string for comparison, so "i+2" wouldn't work. 
&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;BR /&gt;
&lt;BR /&gt;
 __i__    is an index counter and is integer&lt;BR /&gt;
the data we don't know but what we do know is the sequence.&lt;BR /&gt;
what I'm trying to do is point out the second record after the record "keynotedb"&lt;BR /&gt;
&lt;BR /&gt;
Another thing is that string arrays can be compared string by string. Frank Beister in a GDLTips.zip has an example for sorting alphabetically the contents of an array.&lt;BR /&gt;
&lt;BR /&gt;
The problem is when you &lt;B&gt;request&lt;/B&gt; the data array. For some reason they are not stored as simple characters I think, so the data cannot pass on other variables or parameters.&lt;BR /&gt;
&lt;BR /&gt;
just try to store the results in another array and then text2 that array. you will not get satisfactory results&lt;/I&gt;</description>
      <pubDate>Mon, 05 Sep 2016 17:09:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226275#M7310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T17:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226276#M7311</link>
      <description>&lt;BLOCKQUOTE&gt;ispyridis wrote:&lt;BR /&gt;Hi SinceV6,&lt;BR /&gt;
&lt;BR /&gt;
in your answer you state:
&lt;BLOCKQUOTE&gt; It is quite easy to loose track of this, for example, after your comparison you put &lt;BR /&gt;
&lt;BR /&gt;
Code:&lt;BR /&gt;
DATA[i+2]&lt;BR /&gt;
&lt;BR /&gt;
but you just stated that the value in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; was as string for comparison, so "i+2" wouldn't work. 
&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;BR /&gt;
&lt;BR /&gt;
 __i__    is an index counter and is integer&lt;BR /&gt;
the data we don't know but what we do know is the sequence.&lt;BR /&gt;
what I'm trying to do is point out the second record after the record "keynotedb"&lt;BR /&gt;
&lt;BR /&gt;
Another thing is that string arrays can be compared string by string. Frank Beister in a GDLTips.zip has an example for sorting alphabetically the contents of an array.&lt;BR /&gt;
&lt;BR /&gt;
The problem is when you &lt;B&gt;request&lt;/B&gt; the data array. For some reason they are not stored as simple characters I think, so the data cannot pass on other variables or parameters.&lt;BR /&gt;
&lt;BR /&gt;
just try to store the results in another array and then text2 that array. you will not get satisfactory results&lt;/I&gt;&lt;/BLOCKQUOTE&gt;&lt;I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Hi.&lt;BR /&gt;
Oh! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt; My bad. Misinterpreted the result (like &lt;U&gt;&lt;/U&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/I&gt;&lt;/S&gt;value&lt;E&gt;&lt;/E&gt; in &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; is a string, asking for &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;value&lt;E&gt;&lt;/E&gt;+2 won't work, instead of [i+2]). See how easy it is to loose track? &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;&lt;BR /&gt;
I know arrays can be compared value by value (be it a string or number), that's why I said you could actually use
&lt;PRE&gt;IF DATA&lt;I&gt; = "KEYNOTEDB" THEN&lt;/I&gt;&lt;/PRE&gt;
But if "i+2" is not working, then something else is happening. You might not have anything there, not have that exact value "KEYNOTEDB" (so IF is FALSE) or even be running out of values by asking for [i+2] in a loop.&lt;BR /&gt;
&lt;BR /&gt;
Requested arrays could yield mixed value types in a single array, so you could end up with strings and numbers in each array element. I haven't tested the extent of an array's main type (the type of the first value), so can't tell if it has anything to do. If the request result is a mixed type array, you have to be careful to check the type of value you are trying to give to a parameter, as parameters have a fixed type. You could do that with variables, as they can change type depending on the given value. You can use VARTYPE(value) to check each array element. Function will return 1 for numbers, 2 for strings.&lt;BR /&gt;
&lt;BR /&gt;
I don't have any issues when passing values to another array and using text2, but it would depend on how you are trying to make it work.&lt;BR /&gt;
&lt;BR /&gt;
Great work nonetheless.&lt;BR /&gt;
Best regards.</description>
      <pubDate>Mon, 05 Sep 2016 18:41:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226276#M7311</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2016-09-05T18:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226277#M7312</link>
      <description>Hi SinceV6&lt;BR /&gt;
&lt;BR /&gt;
Your comments are always helpful&lt;BR /&gt;
&lt;BR /&gt;
You were right about the mixed arrays.&lt;BR /&gt;
&lt;BR /&gt;
The array to be able to be manipulated has to have stored a common kind of information.&lt;BR /&gt;
&lt;BR /&gt;
I attach below my last atempt with some basic sorting capabilities.&lt;BR /&gt;
&lt;BR /&gt;
I wish someone could show us how to use the user interface of the label for text style control&lt;BR /&gt;
Also when you chose to hide the arrow the whole label disappears&lt;BR /&gt;
&lt;BR /&gt;
Best Regards</description>
      <pubDate>Tue, 06 Sep 2016 21:31:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226277#M7312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-06T21:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226278#M7313</link>
      <description>Hello!&lt;BR /&gt;
Glad I could help a bit.&lt;BR /&gt;
You can manipulate arrays whatever the content. You just have to know what the values are so you can act accordingly. In your previous example, I added this to the 2D script to understand the array's content:
&lt;PRE&gt;DIM texts[][]
FOR i=1 TO n
	texts&lt;I&gt;[1] = DATA&lt;I&gt;
	IF VARTYPE(DATA&lt;I&gt;)=1 THEN texts&lt;I&gt;[2]="number" ELSE texts&lt;I&gt;[2]="string"
NEXT i

FOR i=1 TO n
	text2 4,0,texts&lt;I&gt;[1]
	text2 12,0,texts&lt;I&gt;[2]
	ADD2 0,-1
	IF i MOD 12 = 0 THEN LINE2 0,0,15,0
NEXT i

DEL n
&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

In the current example, I think you could simplify things a lot. I didn't really dig that much in the code to understand what you are trying to do, but I don't think you need to separate everything into different arrays (don't take my word on it though).&lt;BR /&gt;
If you need to do that, you could use a single loop to distribute the values into the different arrays, and another one to call the respecting values.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Wed, 07 Sep 2016 00:00:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226278#M7313</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2016-09-07T00:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226279#M7314</link>
      <description>I'm trying to refine the associated property object label I posted earlier in this thread. I'm trying to use the values retrieved as drop down lists to filter information. I use command : values "___dbsetname" _dbsetname&lt;BR /&gt;
_dbsetname is an array that holds the names of the databases that provide info to the property object. Is this a problem of the request ASSOCEL_PROPERTIES? can the values retrieved in array be used for parameter values. &lt;BR /&gt;
&lt;BR /&gt;
P.S. in the array there are common records is this a problem? should I make a new array that holds descrete values?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 Thanks Ioannis</description>
      <pubDate>Fri, 06 Jan 2017 10:23:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226279#M7314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226280#M7315</link>
      <description>&lt;BLOCKQUOTE&gt;ispyridis wrote:&lt;BR /&gt;I'm trying to refine the associated property object label I posted earlier in this thread. I'm trying to use the values retrieved as drop down lists to filter information. I use command : values "___dbsetname" _dbsetname&lt;BR /&gt;
_dbsetname is an array that holds the names of the databases that provide info to the property object. Is this a problem of the request ASSOCEL_PROPERTIES? can the values retrieved in array be used for parameter values. &lt;BR /&gt;
&lt;BR /&gt;
P.S. in the array there are common records is this a problem? should I make a new array that holds descrete values?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 Thanks Ioannis&lt;/BLOCKQUOTE&gt;

it seems my problem is that the array has duplicate values. is there a way to make an array with unique values out of the initial one?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 06 Jan 2017 21:40:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226280#M7315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226281#M7316</link>
      <description>I managed to limt the _dbsetname values to a new array __dbsetname my problem now is that a zero "0" value comes from nowhere. below is the code with some text2 commands to test contents of both arrays. in the attached image you can see the zero phantom value. Can anybody help?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;n=0


nnn = REQUEST ("ASSOCEL_PROPERTIES", "iscomp,dbsetname,keycode,keyname,code,name,fullname,quantity,totquantity,unitname,unitformatstr,propobjname", n, DATA)
if n = 0 THEN
    TEXT2 0, 0, "No properties"
ELSE
	j = 0
	k=1

	FOR i=1 TO n 

			IF   i/1 = 1 or (i-1)/12 = int((i-1)/12) THEN 
			_iscomp&lt;K&gt;= data&lt;I&gt;
			k=k+1
			ENDIF 
NEXT i
	k=1
FOR i=1 TO n 
			IF   i/2 = 1 or (i-2)/12 = int((i-2)/12) THEN 
			_dbsetname&lt;K&gt;= data&lt;I&gt;
			text2 15,k,_dbsetname&lt;K&gt;
			k=k+1
			ENDIF 
NEXT i

k=2
__dbsetname[1] = _dbsetname[1]
text2 0,0, __dbsetname[1]

FOR i=2 to VARDIM1 (_dbsetname)

IF _dbsetname&lt;I&gt; = _dbsetname[i-1] then 
k=k
else
k=k+1
__dbsetname&lt;K&gt; = _dbsetname&lt;I&gt;

ENDIF
NEXT i

for i=1 to vardim1 (__dbsetname)
text2 5,i, __dbsetname&lt;I&gt;
next i
text2 10,5,vardim1 (__dbsetname)
text2 10,2,vardim1 (_dbsetname)

!
!
!
VALUES "___DBSETNAME" __dbsetname, CUSTOM
!
&lt;/I&gt;&lt;/I&gt;&lt;/K&gt;&lt;/I&gt;&lt;/K&gt;&lt;/I&gt;&lt;/K&gt;&lt;/I&gt;&lt;/K&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Jan 2017 06:20:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226281#M7316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-07T06:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Request asscoccel_properities</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226282#M7317</link>
      <description>ok I found my mistake in the code &lt;BR /&gt;
&lt;BR /&gt;
k=k+1 &lt;BR /&gt;
&lt;BR /&gt;
had to be after &lt;BR /&gt;
&lt;BR /&gt;
__dbsetname&lt;K&gt; = _dbsetname&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;&lt;BR /&gt;
&lt;BR /&gt;
the problem now is that even though I have an array with unique values, I cannot use it in a value list. What is the problem?&lt;/K&gt;</description>
      <pubDate>Sat, 07 Jan 2017 06:57:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Request-assocel-properities/m-p/226282#M7317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-07T06:57:57Z</dc:date>
    </item>
  </channel>
</rss>

