<?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: Breaking Long Code Lines in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37511#M40252</link>
    <description>Try splitting the statement like so:
&lt;PRE&gt;x = 5 + 20
x = x + 25&lt;/PRE&gt;
And so &lt;B&gt;x&lt;/B&gt; becomes 50. It's an option  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
    <pubDate>Tue, 27 Apr 2004 02:18:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-04-27T02:18:22Z</dc:date>
    <item>
      <title>Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37507#M40248</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;How do you break a single long line of code into several shorter lines?  In Visual Basic you can put an underscore character at the end of one line to tell VB that the statement is continued on the next line.  Any equivalent in GDL?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Apr 2004 00:47:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37507#M40248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T00:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37508#M40249</link>
      <description>It depends on what is making your line long. You can always put a return (line feed) after a comma. I don't think you can break up a formula (i.e. return after a `+` or such). You might be able to return after `&amp;amp;` and `OR` conditions. I don't recall if I've tried this or not but I think the comma is the only line continuation character.&lt;BR /&gt;
&lt;BR /&gt;
The short answer is to add a return/line feed and see if an error results.</description>
      <pubDate>Tue, 27 Apr 2004 01:12:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37508#M40249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T01:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37509#M40250</link>
      <description>Also (I guess you allready know this, but...) the colon ":" symbol is meant to combine 2 lines into 1, so replace it with a return.&lt;BR /&gt;
&lt;BR /&gt;
I doubt that's the problem, but you never know.</description>
      <pubDate>Tue, 27 Apr 2004 01:40:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37509#M40250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T01:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37510#M40251</link>
      <description>It's a mathematical equation.  Neither the comma nor the colon work.  Oh well.</description>
      <pubDate>Tue, 27 Apr 2004 01:57:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37510#M40251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T01:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37511#M40252</link>
      <description>Try splitting the statement like so:
&lt;PRE&gt;x = 5 + 20
x = x + 25&lt;/PRE&gt;
And so &lt;B&gt;x&lt;/B&gt; becomes 50. It's an option  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 27 Apr 2004 02:18:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37511#M40252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-27T02:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37512#M40253</link>
      <description>&lt;BLOCKQUOTE&gt;Jay wrote:&lt;BR /&gt;How do you break a single long line of code into several shorter lines? ....&lt;/BLOCKQUOTE&gt;

Jay&lt;BR /&gt;
&lt;BR /&gt;
From the GDL manual, Chapter 2, section on character strings:&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="red"&gt;\new line &lt;/FONT&gt;       continue string in next line without a new line &lt;BR /&gt;
&lt;BR /&gt;
I don't know if this works - have never tried it.</description>
      <pubDate>Tue, 27 Apr 2004 10:48:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37512#M40253</guid>
      <dc:creator>Daniel Lindahl</dc:creator>
      <dc:date>2004-04-27T10:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37513#M40254</link>
      <description>Daniel ,&lt;BR /&gt;
I have some code with some very long "if....then" statements&lt;BR /&gt;
with lots of "and"s and "or"s that had to be on one line or I&lt;BR /&gt;
would get error messages if I tried to use commas but &lt;BR /&gt;
I just tried your suggestion of using the backward slash character&lt;BR /&gt;
 "\" new line to break up the statement into several lines&lt;BR /&gt;
and I get no error messags.&lt;BR /&gt;
Thanks for the tip.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Wed, 28 Apr 2004 02:57:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37513#M40254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T02:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking Long Code Lines</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37514#M40255</link>
      <description>I tried the backslash in the middle of a very long mathematical statement and it worked just fine.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Wed, 28 Apr 2004 14:50:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Breaking-Long-Code-Lines/m-p/37514#M40255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-04-28T14:50:46Z</dc:date>
    </item>
  </channel>
</rss>

