<?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: Changing strings to numerical values in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80160#M35185</link>
    <description>Thanks I will give it a try.</description>
    <pubDate>Mon, 21 Nov 2005 01:44:24 GMT</pubDate>
    <dc:creator>Andrew Swenson</dc:creator>
    <dc:date>2005-11-21T01:44:24Z</dc:date>
    <item>
      <title>Changing strings to numerical values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80158#M35183</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I am trying to use the Global ID to input the starting number of a counter I have in a carpark object.  So that I don't have to open up the object settings everytime I want to change the start number.&lt;BR /&gt;
&lt;BR /&gt;
I understand that the Global ID is a string but I need to have a numeric value to use as a counter.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way of changing the Global ID value from a string type to a numeric type?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Nov 2005 03:02:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80158#M35183</guid>
      <dc:creator>Andrew Swenson</dc:creator>
      <dc:date>2005-11-16T03:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to numerical values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80159#M35184</link>
      <description>&lt;BLOCKQUOTE&gt;I am trying to use the Global ID to input the starting number of a counter I have in a carpark object. So that I don't have to open up the object settings everytime I want to change the start number. &lt;/BLOCKQUOTE&gt; &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; So I have done in mine.&lt;BR /&gt;
&lt;BR /&gt;
You have to use the SPLIT command:&lt;BR /&gt;

&lt;PRE&gt;FLAG=request("ID_of_main","",NRT)
FLAG=split(NRT,"%n",NR)
if strlen(NRT)&amp;gt;strlen(str("%.0",NR)) then FLAG=0&lt;/PRE&gt;

FLAG is a boolean, returning, if the GLOB_ID is an integer&amp;gt;0 or not. NR contains the number.</description>
      <pubDate>Wed, 16 Nov 2005 07:36:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80159#M35184</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-11-16T07:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to numerical values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80160#M35185</link>
      <description>Thanks I will give it a try.</description>
      <pubDate>Mon, 21 Nov 2005 01:44:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80160#M35185</guid>
      <dc:creator>Andrew Swenson</dc:creator>
      <dc:date>2005-11-21T01:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to numerical values</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80161#M35186</link>
      <description>Well that worked!  Thanks for the help.</description>
      <pubDate>Mon, 21 Nov 2005 01:51:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changing-strings-to-numerical-values/m-p/80161#M35186</guid>
      <dc:creator>Andrew Swenson</dc:creator>
      <dc:date>2005-11-21T01:51:05Z</dc:date>
    </item>
  </channel>
</rss>

