<?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: Display values{2} string values, not numeric in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292681#M5738</link>
    <description>Ran into this problem today, have to define the values within the ui_infield command &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I define them all in the master as arrays, one for integers, one for strings, and one for picture names (with the same amount of rows as the other two) can just be empty strings.&lt;BR /&gt;
&lt;BR /&gt;
In the parameter I attach the values{2} with the integer and string arrays &lt;BR /&gt;
&lt;BR /&gt;
then in the ui i use this command.&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD{3} Parameter, x, y, w, h, 8, "", 1, 1, 0,	 0, 0, 0, PictureArray, StringArray, IntegerArray&lt;BR /&gt;
&lt;BR /&gt;
I forget what the ones and zeros are for....&lt;BR /&gt;
&lt;BR /&gt;
Good Luck.</description>
    <pubDate>Wed, 18 Sep 2019 06:55:25 GMT</pubDate>
    <dc:creator>JaseBee</dc:creator>
    <dc:date>2019-09-18T06:55:25Z</dc:date>
    <item>
      <title>Display values{2} string values, not numeric</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292677#M5734</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi, maybe this is obvious, but I could not find it anywhere:&lt;BR /&gt;
&lt;BR /&gt;
How do I retrieve the String part of the new(er) values{2} definition without using the old method of matching the numeric variable with a string equivalent?
&lt;PRE&gt;values{2} "myValue" 1, 'First option', 2, 'Second Option'&lt;/PRE&gt;

Parameters in user dialog box will display the string part of the pair, how about scripts?&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jun 2017 18:54:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292677#M5734</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-22T18:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display values{2} string values, not numeric</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292678#M5735</link>
      <description>Hi.&lt;BR /&gt;
For a couple of options for values{2}, direct input is ok. If you plan to have several options or need access to the string values in the script, you should define the pairs (integers and strings) in separate arrays that you then assign with values{2} to the parameter. This will give you a lot of flexibility when editing the arrays' values.&lt;BR /&gt;
&lt;BR /&gt;
What do you need the string value for? The values{2} command was introduced so you can use the integer part of the pair to make comparisons and other operations, since this will be faster than comparing the string values.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 22 Jun 2017 19:04:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292678#M5735</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2017-06-22T19:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display values{2} string values, not numeric</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292679#M5736</link>
      <description>I just wanted to remind the user what option was selected in a different part of the interface, so there's no surprise about lack of certain functionality.&lt;BR /&gt;
&lt;BR /&gt;
I just think it's better usability that way. Nothing mission-critical.&lt;BR /&gt;
&lt;BR /&gt;
[edit] And, obviously, thanks for your input!</description>
      <pubDate>Thu, 22 Jun 2017 19:22:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292679#M5736</guid>
      <dc:creator>matjashka</dc:creator>
      <dc:date>2017-06-22T19:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display values{2} string values, not numeric</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292680#M5737</link>
      <description>I remember that I have read about a way using ui_infield (&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;can't remember the number&lt;E&gt;&lt;/E&gt;) that although in the GUI you will always see text, the values are actually saved as integers.&lt;BR /&gt;
&lt;BR /&gt;
If you find it, please let me know</description>
      <pubDate>Thu, 31 Jan 2019 14:13:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292680#M5737</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-01-31T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display values{2} string values, not numeric</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292681#M5738</link>
      <description>Ran into this problem today, have to define the values within the ui_infield command &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
I define them all in the master as arrays, one for integers, one for strings, and one for picture names (with the same amount of rows as the other two) can just be empty strings.&lt;BR /&gt;
&lt;BR /&gt;
In the parameter I attach the values{2} with the integer and string arrays &lt;BR /&gt;
&lt;BR /&gt;
then in the ui i use this command.&lt;BR /&gt;
&lt;BR /&gt;
UI_INFIELD{3} Parameter, x, y, w, h, 8, "", 1, 1, 0,	 0, 0, 0, PictureArray, StringArray, IntegerArray&lt;BR /&gt;
&lt;BR /&gt;
I forget what the ones and zeros are for....&lt;BR /&gt;
&lt;BR /&gt;
Good Luck.</description>
      <pubDate>Wed, 18 Sep 2019 06:55:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Display-values-2-string-values-not-numeric/m-p/292681#M5738</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2019-09-18T06:55:25Z</dc:date>
    </item>
  </channel>
</rss>

