<?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 Variable within Text in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-within-Text/m-p/288799#M3984</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all,&lt;BR /&gt;
Figured this would similar to how it is in excel and basic but I can't figure out how to do it...&lt;BR /&gt;
&lt;BR /&gt;
1. How do you insert a variable into a text string? eg. "1:&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt; @ A1"&lt;BR /&gt;
2. How can you insert a text string at the end of a calculation? eg. &lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_y&lt;E&gt;&lt;/E&gt;=&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt;*5 "outlets"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 04 May 2018 03:30:34 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2018-05-04T03:30:34Z</dc:date>
    <item>
      <title>Variable within Text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-within-Text/m-p/288799#M3984</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi all,&lt;BR /&gt;
Figured this would similar to how it is in excel and basic but I can't figure out how to do it...&lt;BR /&gt;
&lt;BR /&gt;
1. How do you insert a variable into a text string? eg. "1:&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt; @ A1"&lt;BR /&gt;
2. How can you insert a text string at the end of a calculation? eg. &lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_y&lt;E&gt;&lt;/E&gt;=&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt;*5 "outlets"&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 May 2018 03:30:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-within-Text/m-p/288799#M3984</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2018-05-04T03:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable within Text</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Variable-within-Text/m-p/288800#M3985</link>
      <description>&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
1. How do you insert a variable into a text string? eg. "1:&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt; @ A1"
&lt;/BLOCKQUOTE&gt;

If variable_x is a string value then you can just concatenate (add) them together.&lt;BR /&gt;

&lt;PRE&gt;"1:" + variable_x + "@ A1"&lt;/PRE&gt;

If variable_x is a numeric value then you have to convert it to a string.&lt;BR /&gt;

&lt;PRE&gt;"1: " + STR(variable_x,2,0) + " @ A1"&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;Lingwisyer wrote:&lt;BR /&gt;
2. How can you insert a text string at the end of a calculation? eg. &lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_y&lt;E&gt;&lt;/E&gt;=&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;S&gt;&lt;B&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/S&gt;variable_x&lt;E&gt;&lt;/E&gt;*5 "outlets"
&lt;/BLOCKQUOTE&gt;

variable_y must be a string variable of course.&lt;BR /&gt;
Then same as before if variable_x is a string value then you can just concatenate (add) them together.&lt;BR /&gt;

&lt;PRE&gt;variable_y = variable_x + "*5 outlets"&lt;/PRE&gt;

If variable_x is a numeric value then you have to convert it to a string.&lt;BR /&gt;

&lt;PRE&gt;variable_y = STR(variable_x,2,0) + "*5 outlets"&lt;/PRE&gt;

Or if you actually want to multiplt variable_x * 5 then&lt;BR /&gt;

&lt;PRE&gt;variable_y = STR(variable_x*5,2,0) + " outlets"&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 04 May 2018 03:59:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Variable-within-Text/m-p/288800#M3985</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2018-05-04T03:59:11Z</dc:date>
    </item>
  </channel>
</rss>

