<?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: UI_PICT_PUSHCHECKBUTTON{2} with boolean array? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272556#M2963</link>
    <description>What is a 3-dimensional Array in GDL ?&lt;BR /&gt;
Array[1][1][1] ist not available in GDL, only 2-dimensional.</description>
    <pubDate>Fri, 21 Dec 2018 21:54:29 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2018-12-21T21:54:29Z</dc:date>
    <item>
      <title>UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272555#M2962</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm trying to use UI_PICT_PUSHCHECKBUTTON{2} to set values in a 3-dimensional boolean array. This doesn't work correctly. When switching to a 1-dimensional array it works as expected. Is there a limitation that is not mentioned in the GDL Reference Guide?&lt;BR /&gt;
/Karl W&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Dec 2018 15:54:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272555#M2962</guid>
      <dc:creator>Karl Wir_n</dc:creator>
      <dc:date>2018-12-21T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272556#M2963</link>
      <description>What is a 3-dimensional Array in GDL ?&lt;BR /&gt;
Array[1][1][1] ist not available in GDL, only 2-dimensional.</description>
      <pubDate>Fri, 21 Dec 2018 21:54:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272556#M2963</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2018-12-21T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272557#M2964</link>
      <description>Sorry, I meant 2-dimensional. The question remains though.&lt;BR /&gt;
Karl</description>
      <pubDate>Mon, 07 Jan 2019 13:04:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272557#M2964</guid>
      <dc:creator>Karl Wir_n</dc:creator>
      <dc:date>2019-01-07T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272558#M2965</link>
      <description>I just tested it and it seems to work fine for me.&lt;BR /&gt;
&lt;BR /&gt;
For a quick test, I created a boolean parameter "bTest" and made it bTest[4][4]&lt;BR /&gt;
&lt;BR /&gt;
UI Script ;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;dim testTxt[4][4]
for i = 1 to 4
	for j = 1 to 4
		testTxt&lt;I&gt;&lt;J&gt; = "Dim1 =" + str(i, 1, 0) + ", Dim2 =" + str(j, 1, 0)
	next j
next i

!-----------------------------------------------
! Try changing i and j below
i = 1	! Use value between 1 to 4
j = 1	! Use value between 1 to 4
!-----------------------------------------------

UI_PICT_PUSHCHECKBUTTON{2} bTest&lt;I&gt;&lt;J&gt;, testTxt&lt;I&gt;&lt;J&gt;, "",         
	1, 10, 40, 120, 120
&lt;/J&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/J&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:35:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272558#M2965</guid>
      <dc:creator>Palawat</dc:creator>
      <dc:date>2019-01-10T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272559#M2966</link>
      <description>Yeah I just ran into this problem too, it seems that the second array dimension isn't taken into account.&lt;BR /&gt;
&lt;BR /&gt;
For example Parameter[3][1] will actually change Parameter[3][3], like wise for [2][1] changing [2][2].&lt;BR /&gt;
&lt;BR /&gt;
It's basically turning a 2 dimension array into a 1 dimension array down the diagonal.&lt;BR /&gt;
&lt;BR /&gt;
Pretty frustrating.&lt;BR /&gt;
&lt;BR /&gt;
And while on the topic, none of the written pushbutton options for boolean parameters respond to the UI_STYLE settings.</description>
      <pubDate>Fri, 30 Apr 2021 02:38:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272559#M2966</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2021-04-30T02:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: UI_PICT_PUSHCHECKBUTTON{2} with boolean array?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272560#M2967</link>
      <description>I'm afraid, guys, UI_PICT_PUSHCHECKBUTTON{2} is working with boolean only, that can be only 1 or 0. Without any arrays.&lt;BR /&gt;
My advice - create necessary variable for the button (I often user UI-prefix for such variables) and if there is dependency between arrays in the script and this button variable - use PARAMETERS in parameter script to set the value.&lt;BR /&gt;
I have learned, that sometimes just re-organising the algorithm of the script differently can solve almost unsolvable parts.</description>
      <pubDate>Sat, 01 May 2021 08:18:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/UI-PICT-PUSHCHECKBUTTON-2-with-boolean-array/m-p/272560#M2967</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-01T08:18:11Z</dc:date>
    </item>
  </channel>
</rss>

