<?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: how to use for loop for the values of ui_infield{3} in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383938#M1167</link>
    <description>&lt;P&gt;Looks like something you would use&amp;nbsp;&lt;STRONG&gt;PUT GET&lt;/STRONG&gt; for.&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;For i = 1 to drawers
PUT i, _stDrawerType[i], value[i]
next i&lt;/LI-CODE&gt;
&lt;P&gt;Do note I have no experience with&amp;nbsp;&lt;STRONG&gt;infield{3}&lt;/STRONG&gt; or using the&amp;nbsp;&lt;STRONG&gt;put&lt;/STRONG&gt; command with arrays.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 01:27:43 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2023-06-16T01:27:43Z</dc:date>
    <item>
      <title>how to use for loop for the values of ui_infield{3}</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383874#M1165</link>
      <description>&lt;DIV&gt;Dear all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have an array (&amp;nbsp;&lt;SPAN&gt;_stDrawerTypes[ ] ). The values are inserted&lt;/SPAN&gt;&amp;nbsp;dynamically by reading a text file.&lt;/DIV&gt;&lt;DIV&gt;is there a way in (ui_infield{3}) in order to use this array (&lt;SPAN&gt;_stDrawerTypes[ ]) for the values without manually typing _stDrawerTypes[1],&amp;nbsp;_stDrawerTypes[2], etc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for example using for loop or other idea&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;! UI Script&lt;/DIV&gt;&lt;DIV&gt;ui_infield{3} "iSymbolType", 10, _yPosition, _infieldWidth, _infieldHeight,&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_method, "5", 4, 2, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_infieldWidth, _infieldHeight, _imageWidth, _imageHeight,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1, _stDrawerTypes[1], "value 1",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2, _stDrawerTypes[2], "value 2",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3, _stDrawerTypes[3], "value 3",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;4, _stDrawerTypes[4], "value 4",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;5, .....................&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;6, ..............&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot01.JPG" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/39058i6B85DE1CA4729204/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot01.JPG" alt="Screenshot01.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:39:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383874#M1165</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2023-06-15T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to use for loop for the values of ui_infield{3}</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383877#M1166</link>
      <description>&lt;P&gt;I use the following routine mostly always:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! MASTER-SCRIPT

DIM _typ_best_text[], _typ_best_pic[], _typ_best_value[]
i = 1
_typ_best_text[i] = "Schnitt 1 b" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 1 c" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 2 e" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 11 f" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1

! ---------------------------------------------------------------------- !



! PARAMETER-SCRIPT

VALUES{2} "int_typ_best", _typ_best_value, _typ_best_text



! INTERFACE-SCRIPT

UI_OUTFIELD "Bestückungstyp", dx, dy + dyO, outL, outH, 1
UI_INFIELD{3} "int_typ_best", dx2, dy, inL, inH,
8, "",
0, 0, 0, 0, 0, 0,
_typ_best_pic, _typ_best_text, _typ_best_value
dy = dy + led

! ......................... !&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:06:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383877#M1166</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-06-15T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to use for loop for the values of ui_infield{3}</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383938#M1167</link>
      <description>&lt;P&gt;Looks like something you would use&amp;nbsp;&lt;STRONG&gt;PUT GET&lt;/STRONG&gt; for.&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;For i = 1 to drawers
PUT i, _stDrawerType[i], value[i]
next i&lt;/LI-CODE&gt;
&lt;P&gt;Do note I have no experience with&amp;nbsp;&lt;STRONG&gt;infield{3}&lt;/STRONG&gt; or using the&amp;nbsp;&lt;STRONG&gt;put&lt;/STRONG&gt; command with arrays.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 01:27:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383938#M1167</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-06-16T01:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to use for loop for the values of ui_infield{3}</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383976#M1168</link>
      <description>&lt;P&gt;perfect, thank you!&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for.&amp;nbsp;It worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:40:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383976#M1168</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2023-06-16T07:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to use for loop for the values of ui_infield{3}</title>
      <link>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383979#M1169</link>
      <description>&lt;P&gt;thank you for your suggestion.&lt;/P&gt;&lt;P&gt;This is a good idea but I could not manage it with&amp;nbsp;infield{3}&amp;nbsp; and the arrays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:55:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/how-to-use-for-loop-for-the-values-of-ui-infield-3/m-p/383979#M1169</guid>
      <dc:creator>Ady84a</dc:creator>
      <dc:date>2023-06-16T07:55:04Z</dc:date>
    </item>
  </channel>
</rss>

